Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
Nothing
Instances
(>=>) :: Monad m => (a -> m b) -> (b -> m c) -> a -> m c infixr 1 #
Left-to-right composition of Kleisli arrows.
'(bs
' can be understood as the >=>
cs) ado
expression
do b <- bs a cs b
Orphan instances
ToJSON Doc Source # | |
ToJSON AbsolutePath Source # | |
toJSON :: AbsolutePath -> Value toEncoding :: AbsolutePath -> Encoding toJSONList :: [AbsolutePath] -> Value toEncodingList :: [AbsolutePath] -> Encoding |