speechmatics-0.5.0.0: Speechmatics api client
Speechmatics.JSON.PeekJob
Description
Generated from json response, now it's type safe, see the tests
Synopsis
(.:??) :: FromJSON a => Object -> Text -> Parser (Maybe a) Source #
Workaround for https://github.com/bos/aeson/issues/287.
data Job Source #
Constructors
Fields
Instances
Methods
(==) :: Job -> Job -> Bool #
(/=) :: Job -> Job -> Bool #
showsPrec :: Int -> Job -> ShowS #
show :: Job -> String #
showList :: [Job] -> ShowS #
Associated Types
type Rep Job :: * -> * #
from :: Job -> Rep Job x #
to :: Rep Job x -> Job #
parseJSON :: Value -> Parser Job #
parseJSONList :: Value -> Parser [Job] #
data TopLevel Source #
(==) :: TopLevel -> TopLevel -> Bool #
(/=) :: TopLevel -> TopLevel -> Bool #
showsPrec :: Int -> TopLevel -> ShowS #
show :: TopLevel -> String #
showList :: [TopLevel] -> ShowS #
type Rep TopLevel :: * -> * #
from :: TopLevel -> Rep TopLevel x #
to :: Rep TopLevel x -> TopLevel #
parseJSON :: Value -> Parser TopLevel #
parseJSONList :: Value -> Parser [TopLevel] #
parse :: ByteString -> Either String Job Source #