Safe Haskell | None |
---|---|
Language | Haskell2010 |
Generated from json response, now it's type safe, see the tests
- (.:??) :: FromJSON a => Object -> Text -> Parser (Maybe a)
- data Job = Job {
- jobCheckWait :: Maybe Integer
- jobNotification :: Text
- jobJobType :: Text
- jobUrl :: Text
- jobNextCheck :: Double
- jobLang :: Text
- jobJobStatus :: Text
- jobName :: Text
- jobCreatedAt :: Text
- jobId :: Double
- jobMeta :: Maybe Value
- jobUserId :: Double
- jobDuration :: Double
- jobTranscription :: Maybe Text
- data TopLevel = TopLevel {
- topLevelJob :: Job
- parse :: ByteString -> Either String Job
Documentation
(.:??) :: FromJSON a => Object -> Text -> Parser (Maybe a) Source #
Workaround for https://github.com/bos/aeson/issues/287.
Job | |
|