| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Graphics.Text.Font.Choose.Value
Description
A dynamic type system for patterns.
Synopsis
- data Value
- validValue :: Value -> Bool
- class ToValue x where
Documentation
A dynamic type system for Patterns.
Constructors
| ValueVoid | |
| ValueInt Int | |
| ValueDouble Double | |
| ValueString String | |
| ValueBool Bool | |
| ValueMatrix (M22 Double) | |
| ValueCharSet CharSet | |
| ValueLangSet LangSet | |
| ValueRange Range |
Instances
validValue :: Value -> Bool Source #
Can the value be processed by FontConfig?
class ToValue x where Source #
Coerces compiletime types to or from runtime types.
Methods
toValue :: x -> Value Source #
fromValue :: Value -> Maybe x Source #
fromValue' :: Value -> x Source #