| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Agda.Interaction.JSON
Contents
Description
Encoding stuff into JSON values in TCM
Synopsis
- class EncodeTCM a where
 - obj :: [TCM Pair] -> TCM Value
 - kind :: Text -> [TCM Pair] -> TCM Value
 - kind' :: Text -> [Pair] -> Value
 - (@=) :: EncodeTCM a => Text -> a -> TCM Pair
 - (#=) :: ToJSON a => Text -> TCM a -> TCM Pair
 - (>=>) :: Monad m => (a -> m b) -> (b -> m c) -> a -> m c
 - (<=<) :: Monad m => (b -> m c) -> (a -> m b) -> a -> m c
 
Documentation
class EncodeTCM a where Source #
The JSON version ofPrettyTCM, for encoding JSON value in TCM
Minimal complete definition
Nothing
Instances
(>=>) :: Monad m => (a -> m b) -> (b -> m c) -> a -> m c infixr 1 #
Left-to-right composition of Kleisli arrows.
Orphan instances
| ToJSON Doc Source # | |
| ToJSON AbsolutePath Source # | |
Methods toJSON :: AbsolutePath -> Value # toEncoding :: AbsolutePath -> Encoding # toJSONList :: [AbsolutePath] -> Value # toEncodingList :: [AbsolutePath] -> Encoding #  | |
| ToJSON a => ToJSON (Maybe a) Source # | |