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 #
pprint77l :: IndentablePretty a => a -> String Source #
Render some AST element to a String
using F77 legacy mode.
Orphan instances
ToJSON SemType Source # | |
ToJSON CharacterLen Source # | |
toJSON :: CharacterLen -> Value # toEncoding :: CharacterLen -> Encoding # toJSONList :: [CharacterLen] -> Value # toEncodingList :: [CharacterLen] -> Encoding # | |
ToJSON BaseType Source # | |
ToJSON Position Source # | |
ToJSON SrcSpan Source # | |
FromJSON SemType Source # | |
FromJSON CharacterLen Source # | |
parseJSON :: Value -> Parser CharacterLen # parseJSONList :: Value -> Parser [CharacterLen] # | |
FromJSON BaseType Source # | |
FromJSON Position Source # | |
FromJSON SrcSpan Source # | |