-
-
Save dozed/41c4c6b74d5fc1c06c306d6e1783e762 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
main :: IO () | |
main = toJSONFilter $ \block -> do | |
let blocks = toList . convertBlock $ block | |
return blocks | |
-- Ambiguous type variable ‘m0’ arising from a use of ‘return’ | |
-- prevents the constraint ‘(Monad m0)’ from being solved. |
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
main :: IO () | |
main = toJSONFilter $ \block -> do | |
let blocks = toList . convertBlock $ block | |
return blocks :: IO [Block] |
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
main :: IO () | |
main = toJSONFilter $ fmap (\blocks -> return blocks :: IO [Block]) $ toList . convertBlock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment