/issue.hs Secret
Created
May 18, 2023 22:45
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