| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
RIO.PrettyPrint.StylesUpdate
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
Constructors
| StylesUpdate | |
Fields
| |
Instances
| FromJSON StylesUpdate Source # | |
Defined in RIO.PrettyPrint.StylesUpdate | |
| Monoid StylesUpdate Source # | |
Defined in RIO.PrettyPrint.StylesUpdate Methods mempty :: StylesUpdate # mappend :: StylesUpdate -> StylesUpdate -> StylesUpdate # mconcat :: [StylesUpdate] -> StylesUpdate # | |
| Semigroup StylesUpdate Source # | The first styles update overrides the second one. |
Defined in RIO.PrettyPrint.StylesUpdate Methods (<>) :: StylesUpdate -> StylesUpdate -> StylesUpdate # sconcat :: NonEmpty StylesUpdate -> StylesUpdate # stimes :: Integral b => b -> StylesUpdate -> StylesUpdate # | |
| Show StylesUpdate Source # | |
Defined in RIO.PrettyPrint.StylesUpdate Methods showsPrec :: Int -> StylesUpdate -> ShowS # show :: StylesUpdate -> String # showList :: [StylesUpdate] -> ShowS # | |
| Eq StylesUpdate Source # | |
Defined in RIO.PrettyPrint.StylesUpdate | |
| HasStylesUpdate StylesUpdate Source # | |
Defined in RIO.PrettyPrint.StylesUpdate Methods | |
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
Methods
stylesUpdateL :: Lens' env StylesUpdate Source #
Instances
| HasStylesUpdate SimplePrettyApp Source # | |
Defined in RIO.PrettyPrint.Simple Methods stylesUpdateL :: Lens' SimplePrettyApp StylesUpdate Source # | |
| HasStylesUpdate StylesUpdate Source # | |
Defined in RIO.PrettyPrint.StylesUpdate Methods | |