Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype StylesUpdate = StylesUpdate {
- stylesUpdate :: [(Style, StyleSpec)]
- parseStylesUpdateFromString :: String -> StylesUpdate
- class HasStylesUpdate env where
- stylesUpdateL :: Lens' env StylesUpdate
Documentation
newtype StylesUpdate Source #
Updates to Styles
StylesUpdate | |
|
Instances
parseStylesUpdateFromString :: String -> StylesUpdate Source #
Parse a string that is a colon-delimited sequence of key=value, where key
is a style name and value
is a semicolon-delimited list of ANSI
SGR
(Select Graphic Rendition) control codes (in decimal). Keys that are not
present in defaultStyles
are ignored. Items in the semicolon-delimited
list that are not recognised as valid control codes are ignored.
class HasStylesUpdate env where Source #
Environment values with a styles update.
Since: 0.1.0.0
stylesUpdateL :: Lens' env StylesUpdate Source #