| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Haskus.Format.Text
Synopsis
- newtype TextBuffer (t :: k) b = TextBuffer b
- type TextI t = TextBuffer t BufferI
- type TextB t mut pin fin heap = TextBuffer t (Buffer mut pin fin heap)
- class ShowText t b where
- showTextIO :: MonadIO m => TextBuffer t b -> m String
- showText :: BufferToList b => TextBuffer t b -> String
Documentation
newtype TextBuffer (t :: k) b Source #
Text buffer
The buffer contains a text encoded according to phantom type t
Constructors
| TextBuffer b |
Instances
| (IsList b, Item b ~ Word8) => IsString (TextBuffer ASCII b) Source # | Support ASCII text with OverloadedStrings
|
Defined in Haskus.Format.Text.ASCII Methods fromString :: String -> TextBuffer ASCII b # | |
type TextI t = TextBuffer t BufferI Source #
type TextB t mut pin fin heap = TextBuffer t (Buffer mut pin fin heap) Source #
class ShowText t b where Source #
Methods
showTextIO :: MonadIO m => TextBuffer t b -> m String Source #
Show text in IO
showText :: BufferToList b => TextBuffer t b -> String Source #
Pure show text
Instances
| ShowText ASCII (Buffer mut pin gc heap) Source # | Instance for ASCII text
|
Defined in Haskus.Format.Text.ASCII Methods showTextIO :: MonadIO m => TextBuffer ASCII (Buffer mut pin gc heap) -> m String Source # showText :: TextBuffer ASCII (Buffer mut pin gc heap) -> String Source # | |