License | BSD3 |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
Note: This module may move into other (own) package.
- class AnsiPretty a where
- ansiPretty :: a -> Doc
- ansiPrettyList :: [a] -> Doc
- gAnsiPretty :: forall a. (Generic a, HasDatatypeInfo a, All2 AnsiPretty (Code a)) => a -> Doc
- gAnsiPrettyWith :: forall a. (Generic a, HasDatatypeInfo a, All2 AnsiPretty (Code a)) => AnsiPrettyOpts -> a -> Doc
- data AnsiPrettyOpts = AnsiPrettyOpts {
- poPrettyField :: FieldName -> Doc -> Doc
- poPrettyRecord :: ConstructorName -> [Doc] -> Doc
- defAnsiPrettyOpts :: AnsiPrettyOpts
- prettyOpts :: String -> AnsiPrettyOpts
Class
class AnsiPretty a where Source
Nothing
ansiPretty :: a -> Doc Source
ansiPrettyList :: [a] -> Doc Source
Generic
gAnsiPretty :: forall a. (Generic a, HasDatatypeInfo a, All2 AnsiPretty (Code a)) => a -> Doc Source
gAnsiPrettyWith :: forall a. (Generic a, HasDatatypeInfo a, All2 AnsiPretty (Code a)) => AnsiPrettyOpts -> a -> Doc Source
data AnsiPrettyOpts Source
AnsiPrettyOpts | |
|
prettyOpts :: String -> AnsiPrettyOpts Source
PrettyOpts
used in flowdock-rest