Skip to content

Commit 025b4d7

Browse files
committed
ToList: instance for Maybe
1 parent 43abe69 commit 025b4d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Class/ToList.agda

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ instance
2020

2121
ToList-Vec : {n} ToList (Vec A n) A
2222
ToList-Vec .toList = V.toList
23+
24+
ToList-Maybe : ToList (Maybe A) A
25+
ToList-Maybe .toList = L.fromMaybe

0 commit comments

Comments
 (0)