Last active
May 11, 2018 18:49
-
-
Save KirinDave/9609d19c9c68f2e316b09fe82e8058f5 to your computer and use it in GitHub Desktop.
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
data SomeThing = SomeThing { name :: Text, age :: Int } | |
makeSomeThing :: (Monad m) => m Text -> m Int -> m SomeThing | |
makeSomeThing nameE ageE = do | |
name <- nameE | |
age <- ageE | |
return $ SomeThing name age |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dumb question: is the return type
m Something
supposed to be lowercase vsSomeThing
?