Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utils and Aeson orphan instances for common types in the AST.
Synopsis
- commonEncode :: ToJSON a => a -> ByteString
- pprint77l :: IndentablePretty a => a -> String
Documentation
commonEncode :: ToJSON a => a -> ByteString Source #
Provide a wrapper for the encode
function to allow
indirect use in modules importing
Encoding
.
pprint77l :: IndentablePretty a => a -> String Source #
Render some AST element to a String
using F77 legacy mode.
Orphan instances
FromJSON BaseType Source # | |
parseJSON :: Value -> Parser BaseType parseJSONList :: Value -> Parser [BaseType] | |
FromJSON CharacterLen Source # | |
parseJSON :: Value -> Parser CharacterLen parseJSONList :: Value -> Parser [CharacterLen] | |
FromJSON SrcSpan Source # | |
parseJSON :: Value -> Parser SrcSpan parseJSONList :: Value -> Parser [SrcSpan] | |
FromJSON Position Source # | |
parseJSON :: Value -> Parser Position parseJSONList :: Value -> Parser [Position] | |
ToJSON BaseType Source # | |
toJSON :: BaseType -> Value toEncoding :: BaseType -> Encoding toJSONList :: [BaseType] -> Value toEncodingList :: [BaseType] -> Encoding | |
ToJSON CharacterLen Source # | |
toJSON :: CharacterLen -> Value toEncoding :: CharacterLen -> Encoding toJSONList :: [CharacterLen] -> Value toEncodingList :: [CharacterLen] -> Encoding | |
ToJSON SrcSpan Source # | |
toJSON :: SrcSpan -> Value toEncoding :: SrcSpan -> Encoding toJSONList :: [SrcSpan] -> Value toEncodingList :: [SrcSpan] -> Encoding | |
ToJSON Position Source # | |
toJSON :: Position -> Value toEncoding :: Position -> Encoding toJSONList :: [Position] -> Value toEncodingList :: [Position] -> Encoding |