Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 #
Instances
Eq Importance Source # | |
Defined in Dino.Pretty (==) :: Importance -> Importance -> Bool # (/=) :: Importance -> Importance -> Bool # | |
Show Importance Source # | |
Defined in Dino.Pretty showsPrec :: Int -> Importance -> ShowS # show :: Importance -> String # showList :: [Importance] -> ShowS # | |
Generic Importance Source # | |
Defined in Dino.Pretty type Rep Importance :: Type -> Type # from :: Importance -> Rep Importance x # to :: Rep Importance x -> Importance # | |
Semigroup Importance Source # | |
Defined in Dino.Pretty (<>) :: Importance -> Importance -> Importance # sconcat :: NonEmpty Importance -> Importance # stimes :: Integral b => b -> Importance -> Importance # | |
Hashable Importance Source # | |
Defined in Dino.Pretty hashWithSalt :: Int -> Importance -> Int # hash :: Importance -> Int # | |
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.