ghc-9.2.0.20210331: The GHC API
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Utils.Json

Synopsis

Documentation

data JsonDoc where Source #

Simple data type to represent JSON documents.

class ToJson a where Source #

Methods

json :: a -> JsonDoc Source #

Instances

Instances details
ToJson WarnReason # 
Instance details

Defined in GHC.Driver.CmdLine

ToJson WarnReason # 
Instance details

Defined in GHC.Driver.Flags

ToJson Severity # 
Instance details

Defined in GHC.Types.Error

ToJson RealSrcSpan # 
Instance details

Defined in GHC.Types.SrcLoc

ToJson SrcSpan # 
Instance details

Defined in GHC.Types.SrcLoc

Methods

json :: SrcSpan -> JsonDoc Source #