Safe Haskell | None |
---|---|
Language | Haskell2010 |
- expandForDisplay :: (Functor f, MonadReader Environment m) => f Text -> m (f Text)
- expandLineForDisplay :: MonadReader Environment m => Text -> m Text
Utilities for rendering Text
Tabs and other characters below ASCII 32 cause problems in
Graphics.Vty, so we expand them to readable characters, e.g. \r
to ^13
. Tabs are expanded toh the configured tabWidth
.
expandForDisplay :: (Functor f, MonadReader Environment m) => f Text -> m (f Text) Source #
Expand a list of lines
expandLineForDisplay :: MonadReader Environment m => Text -> m Text Source #
Expand a single line