Created
September 9, 2012 07:42
-
-
Save jroesch/3683227 to your computer and use it in GitHub Desktop.
toBool
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
/* Use this as our base */ | |
(.:?) :: (FromJSON a) => Object -> Text -> Parser (Maybe a) | |
obj .:? key = case M.lookup key obj of | |
Nothing -> pure Nothing | |
Just v -> parseJSON v | |
/* I'll look into it tomorrow */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment