Safe Haskell | None |
---|---|
Language | Haskell2010 |
Dino.Pretty
Description
Helpers for pretty printing
Synopsis
- data Importance
- unchanged :: Doc
- emphasize :: Importance -> Doc -> Doc
- underHeader :: Doc -> Doc -> Doc
- verticalList :: Doc -> Doc -> Doc -> [Doc] -> Doc
- newtype Field = Field {}
- prettyRecord :: (Show k, Ord k) => Importance -> HashMap k Doc -> Doc
Documentation
data Importance Source #
Constructors
Unimportant | |
Important |
Instances
Eq Importance Source # | |
Defined in Dino.Pretty | |
Show Importance Source # | |
Defined in Dino.Pretty Methods showsPrec :: Int -> Importance -> ShowS # show :: Importance -> String # showList :: [Importance] -> ShowS # | |
Generic Importance Source # | |
Defined in Dino.Pretty Associated Types type Rep Importance :: Type -> Type # | |
Semigroup Importance Source # | |
Defined in Dino.Pretty Methods (<>) :: Importance -> Importance -> Importance # sconcat :: NonEmpty Importance -> Importance # stimes :: Integral b => b -> Importance -> Importance # | |
Hashable Importance Source # | |
Defined in Dino.Pretty | |
type Rep Importance Source # | |
Place a document indented under a header:
header doc doc ...
verticalList :: Doc -> Doc -> Doc -> [Doc] -> Doc Source #
Render a list of documents as follows:
[ a , b , ... ]
where '['
, ','
and ']'
are provided as the first three parameters.
A wrapper for String
with a Show
instance that omits quotes
Useful in situations where show
is (ab)used to provide conversion to
String
rather than for displaying values.
Instances
Eq Field Source # | |
Ord Field Source # | |
Show Field Source # | |
IsString Field Source # | |
Defined in Dino.Pretty Methods fromString :: String -> Field # | |
Pretty Field Source # | |
Defined in Dino.Pretty | |
Hashable Field Source # | |
Defined in Dino.Pretty | |
Inspectable a => Inspectable (Mapping Field a) Source # | |