Skip to content

Commit 2b92531

Browse files
committed
Fix example
1 parent 411b32a commit 2b92531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/do.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data Maybe a = Nothing | Just a
1010

1111
instance functorMaybe :: Functor Maybe where
1212
(<$>) _ Nothing = Nothing
13-
(<$>) f (Just a) = Just a
13+
(<$>) f (Just a) = Just (f a)
1414

1515
instance applyMaybe :: Apply Maybe where
1616
(<*>) = ap

0 commit comments

Comments
 (0)