Copyright | (C) 2014-2016 Ryan Scott |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Ryan Scott |
Stability | Provisional |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Monomorphic TextShow
functions for data types in the pretty
library.
Since: 2
- renderB :: Doc -> Builder
- renderStyleB :: Style -> Doc -> Builder
- renderAnnotB :: Doc a -> Builder
- renderStyleAnnotB :: Style -> Doc a -> Builder
- showbMode :: Mode -> Builder
- showbStylePrec :: Int -> Style -> Builder
- showbTextDetailsPrec :: Int -> TextDetails -> Builder
- showbPrettyLevelPrec :: Int -> PrettyLevel -> Builder
- liftShowbAnnotDetailsPrec :: (Int -> a -> Builder) -> Int -> AnnotDetails a -> Builder
- showbPrettyLevelAnnotPrec :: Int -> PrettyLevel -> Builder
- liftShowbSpanPrec :: (Int -> a -> Builder) -> Int -> Span a -> Builder
Documentation
renderAnnotB :: Doc a -> Builder Source #
showbTextDetailsPrec :: Int -> TextDetails -> Builder Source #
Convert TextDetails
to a Builder
with the given precedence.
Since: 2
showbPrettyLevelPrec :: Int -> PrettyLevel -> Builder Source #
Convert a PrettyLevel
value to a Builder
with the given precedence.
This function is only available with pretty-1.1.2.0
or later.
Since: 2
liftShowbAnnotDetailsPrec :: (Int -> a -> Builder) -> Int -> AnnotDetails a -> Builder Source #
Convert an AnnotDetais
value to a Builder
with the given show function
and precedence. This function is only available with pretty-1.1.3
or later.
Since: 3
showbPrettyLevelAnnotPrec :: Int -> PrettyLevel -> Builder Source #
Convert an annotated PrettyLevel
value to a Builder
with the given precedence.
This function is only available with pretty-1.1.3
or later.
Since: 3
Orphan instances
TextShow PrettyLevel Source # | |
TextShow Doc Source # | |
TextShow PrettyLevel Source # | |
TextShow TextDetails Source # | |
TextShow Style Source # | |
TextShow Mode Source # | |
TextShow1 Doc Source # | |
TextShow1 AnnotDetails Source # | |
TextShow1 Span Source # | |
TextShow (Doc a) Source # | |
TextShow a0 => TextShow (AnnotDetails a0) Source # | |
TextShow a0 => TextShow (Span a0) Source # | |