Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- mkDisplayText :: Text -> DisplayText
- unDisplayText :: DisplayText -> Text
- mkDt :: Text -> DisplayText
- unDt :: DisplayText -> Text
- mkDisplayTextStr :: String -> DisplayText
- unDisplayTextStr :: DisplayText -> String
- mkDtStr :: String -> DisplayText
- unDtStr :: DisplayText -> String
- dPrint :: Display a => a -> IO ()
- ppShow :: Show a => a -> String
- pPrint :: Show a => a -> IO ()
- class Display a where
- data DisplayText
Documentation
mkDisplayText :: Text -> DisplayText Source #
Wrap Text
into a DisplayText
.
unDisplayText :: DisplayText -> Text Source #
Unwrap DisplayText
to a Text
.
unDt :: DisplayText -> Text Source #
Alias for unDisplayText
mkDisplayTextStr :: String -> DisplayText Source #
Wrap String
into a DisplayText
.
unDisplayTextStr :: DisplayText -> String Source #
Unwrap DisplayText
to a String
.
mkDtStr :: String -> DisplayText Source #
Alias for mkDisplayTextStr
unDtStr :: DisplayText -> String Source #
Alias for unDisplayTextStr
Re-exports
pPrint :: Show a => a -> IO () #
Pretty print a generic value to stdout. This is particularly useful in the GHCi interactive environment.
Types
data DisplayText Source #