Safe Haskell | None |
---|---|
Language | GHC2021 |
Documentation
Simple data type to represent JSON documents.
renderJSON :: JsonDoc -> SDoc Source #
escapeJsonString :: String -> String Source #
Instances
ToJson DiagnosticCode Source # | |
Defined in GHC.Types.Error json :: DiagnosticCode -> JsonDoc Source # | |
ToJson MessageClass Source # | |
Defined in GHC.Types.Error json :: MessageClass -> JsonDoc Source # | |
ToJson Severity Source # | |
ToJson RealSrcSpan Source # | |
Defined in GHC.Types.SrcLoc json :: RealSrcSpan -> JsonDoc Source # | |
ToJson SrcSpan Source # | |
ToJson String Source # | |
ToJson Int Source # | |
Diagnostic e => ToJson (Messages e) Source # | |
Diagnostic e => ToJson (MsgEnvelope e) Source # | |
Defined in GHC.Types.Error json :: MsgEnvelope e -> JsonDoc Source # |