Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Text.JSON.Pretty
Description
Display JSON values using pretty printing combinators.
Documentation
pp_boolean :: Bool -> Doc Source #
pp_js_string :: JSString -> Doc Source #
Instances
IsString Doc | |||||
Defined in Text.PrettyPrint.HughesPJ Methods fromString :: String -> Doc | |||||
Monoid Doc | |||||
Semigroup Doc | |||||
Generic Doc | |||||
Defined in Text.PrettyPrint.HughesPJ Associated Types
| |||||
Show Doc | |||||
NFData Doc | |||||
Defined in Text.PrettyPrint.HughesPJ | |||||
Eq Doc | |||||
type Rep Doc | |||||
Defined in Text.PrettyPrint.HughesPJ type Rep Doc = D1 ('MetaData "Doc" "Text.PrettyPrint.HughesPJ" "pretty-1.1.3.6-76dc" 'True) (C1 ('MetaCons "Doc" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc ())))) |
doubleQuotes :: Doc -> Doc #
data TextDetails #
Instances
Generic TextDetails | |||||
Defined in Text.PrettyPrint.Annotated.HughesPJ Associated Types
| |||||
Show TextDetails | |||||
Defined in Text.PrettyPrint.Annotated.HughesPJ Methods showsPrec :: Int -> TextDetails -> ShowS show :: TextDetails -> String showList :: [TextDetails] -> ShowS | |||||
NFData TextDetails | |||||
Defined in Text.PrettyPrint.Annotated.HughesPJ Methods rnf :: TextDetails -> () | |||||
Eq TextDetails | |||||
Defined in Text.PrettyPrint.Annotated.HughesPJ | |||||
type Rep TextDetails | |||||
Defined in Text.PrettyPrint.Annotated.HughesPJ type Rep TextDetails = D1 ('MetaData "TextDetails" "Text.PrettyPrint.Annotated.HughesPJ" "pretty-1.1.3.6-76dc" 'False) (C1 ('MetaCons "Chr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Char)) :+: (C1 ('MetaCons "Str" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :+: C1 ('MetaCons "PStr" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)))) |
Constructors
PageMode | |
ZigZagMode | |
LeftMode | |
OneLineMode |
Instances
Generic Mode | |||||
Defined in Text.PrettyPrint.Annotated.HughesPJ Associated Types
| |||||
Show Mode | |||||
Eq Mode | |||||
type Rep Mode | |||||
Defined in Text.PrettyPrint.Annotated.HughesPJ type Rep Mode = D1 ('MetaData "Mode" "Text.PrettyPrint.Annotated.HughesPJ" "pretty-1.1.3.6-76dc" 'False) ((C1 ('MetaCons "PageMode" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ZigZagMode" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LeftMode" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OneLineMode" 'PrefixI 'False) (U1 :: Type -> Type))) |
Constructors
Style | |
Fields
|
Instances
Generic Style | |||||
Defined in Text.PrettyPrint.Annotated.HughesPJ Associated Types
| |||||
Show Style | |||||
Eq Style | |||||
type Rep Style | |||||
Defined in Text.PrettyPrint.Annotated.HughesPJ type Rep Style = D1 ('MetaData "Style" "Text.PrettyPrint.Annotated.HughesPJ" "pretty-1.1.3.6-76dc" 'False) (C1 ('MetaCons "Style" 'PrefixI 'True) (S1 ('MetaSel ('Just "mode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Mode) :*: (S1 ('MetaSel ('Just "lineLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "ribbonsPerLine") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Float)))) |
fullRender :: Mode -> Int -> Float -> (TextDetails -> a -> a) -> a -> Doc -> a #
maybeBraces :: Bool -> Doc -> Doc #
maybeBrackets :: Bool -> Doc -> Doc #
maybeDoubleQuotes :: Bool -> Doc -> Doc #
maybeParens :: Bool -> Doc -> Doc #
maybeQuotes :: Bool -> Doc -> Doc #
renderStyle :: Style -> Doc -> String #
zeroWidthText :: String -> Doc #