Modulewl-pprint-annotated-0.1.0.2
Text.PrettyPrint.Annotated.WL
- 3 types
- 1 class
- 81 values
- Packagewl-pprint-annotated-0.1.0.2
- Exports87
- LicenceBSD-3-Clause
- SourceBase.hs
Identity of mappend
Examples
"Hello world" <> mempty"Hello world"
mempty <> [1, 2, 3][1,2,3]
An associative operation.
Examples
[1,2,3] <> [4,5,6][1,2,3,4,5,6]
Just [1, 2, 3] <> Just [4, 5, 6]Just [1,2,3,4,5,6]
putStr "Hello, " <> putStrLn "World!"Hello, World!
Instances9Functor, Show, IsString, Generic, Semigroup, Monoid, …
Functor DocDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLShow (Doc a)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLIsString (Doc a)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLGeneric (Doc a)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLSemigroup (Doc a)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLMonoid (Doc a)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLNFData a => NFData (Doc a)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty (Doc a)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLtype Rep (Doc a) = D1 ('MetaDataDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WL"Doc"
"Text.PrettyPrint.Annotated.WL"
"wl-pprint-annotated-0.1.0.2-IqeUNKqbPYUDwQ9Iab60l0"
'False) (((C1 ('MetaCons"Empty"
'PrefixI 'False) U1 :+: (C1 ('MetaCons"Char"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Char)) :+: C1 ('MetaCons"Text"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Int) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)))) :+: (C1 ('MetaCons"Line"
'PrefixI 'False) U1 :+: (C1 ('MetaCons"FlatAlt"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a)) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a))) :+: C1 ('MetaCons"Cat"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a)) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a)))))) :+: ((C1 ('MetaCons"Nest"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Int) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a))) :+: (C1 ('MetaCons"Union"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a)) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a))) :+: C1 ('MetaCons"Annotate"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Doc a))))) :+: ((C1 ('MetaCons"Column"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Int -> Doc a))) :+: C1 ('MetaCons"Nesting"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Int -> Doc a)))) :+: (C1 ('MetaCons"Columns"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int -> Doc a))) :+: C1 ('MetaCons"Ribbon"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int -> Doc a)))))))
Methods
pretty :: a -> Doc bprettyList :: [a] -> Doc b
Instances27Pretty, …
Pretty IntegerDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty NaturalDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty Int16Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty Int32Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty Int64Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty Int8Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty RationalDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty BoolDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty CharDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty DoubleDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty FloatDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty IntDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty WordDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty Word16Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty Word32Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty Word64Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty Word8Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty TextDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty TextDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty ()Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty (Doc a)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty a => Pretty (Seq a)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty a => Pretty (NonEmpty a)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty a => Pretty (Maybe a)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLPretty a => Pretty [a]Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WL(Pretty a, Pretty b) => Pretty (a, b)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WL(Pretty a, Pretty b, Pretty c) => Pretty (a, b, c)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WL
Instances6Functor, Foldable, Traversable, Generic, NFData, Rep
Functor SimpleDocDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLFoldable SimpleDocDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLTraversable SimpleDocDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLGeneric (SimpleDoc a)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLNFData a => NFData (SimpleDoc a)Defined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WLtype Rep (SimpleDoc a) = D1 ('MetaDataDefined in wl-pprint-annotated-0.1.0.2 · Text.PrettyPrint.Annotated.WL"SimpleDoc"
"Text.PrettyPrint.Annotated.WL"
"wl-pprint-annotated-0.1.0.2-IqeUNKqbPYUDwQ9Iab60l0"
'False) ((C1 ('MetaCons"SEmpty"
'PrefixI 'False) U1 :+: (C1 ('MetaCons"SChar"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Char) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SimpleDoc a))) :+: C1 ('MetaCons"SText"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Int) :*: (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SimpleDoc a)))))) :+: (C1 ('MetaCons"SLine"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'SourceUnpack 'SourceStrict 'DecidedUnpack) (Rec0 Int) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SimpleDoc a))) :+: (C1 ('MetaCons"SPushAnn"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SimpleDoc a))) :+: C1 ('MetaCons"SPopAnn"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SimpleDoc a))))))