diff --git a/src/Chapter4.hs b/src/Chapter4.hs index a851c0b0..20532222 100644 --- a/src/Chapter4.hs +++ b/src/Chapter4.hs @@ -400,7 +400,7 @@ instance Applicative Maybe where pure :: a -> Maybe a pure = Just - (<*>) :: Just (a -> b) -> Just a -> Just b + (<*>) :: Maybe (a -> b) -> Maybe a -> Maybe b Nothing <*> _ = Nothing Just f <*> x = fmap f x @