Created
October 3, 2017 11:01
-
-
Save wuct/bf06a8e7923c71fda76e01247caae930 to your computer and use it in GitHub Desktop.
Answers of PureScript by Example Ch7 exercises.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
liftedAdd :: forall f a. Apply f => Semiring a => f a -> f a -> f a | |
liftedAdd = lift2 (+) | |
combineMaybe :: forall a f. Applicative f => Maybe (f a) -> f (Maybe a) | |
combineMaybe Nothing = pure Nothing | |
combineMaybe (Just f) = Just <$> f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment