Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
Instances
(IsList b, Item b ~ Word8) => IsString (TextBuffer ASCII b) Source # | Support ASCII text with OverloadedStrings
|
Defined in Haskus.Format.Text.ASCII 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 #
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 showTextIO :: MonadIO m => TextBuffer ASCII (Buffer mut pin gc heap) -> m String Source # showText :: TextBuffer ASCII (Buffer mut pin gc heap) -> String Source # |