Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class FromAttribute a where
- proxyFromAttribute :: FromAttribute a => Proxy a -> Text -> Either Text a
- textFromAttribute :: Text -> Either Text Text
- stringFromAttribute :: Text -> Either Text String
- charFromAttribute :: Text -> Either Text Char
- intFromAttribute :: Text -> Either Text Int
- integerFromAttribute :: Text -> Either Text Integer
- doubleFromAttribute :: Text -> Either Text Double
- fixedFromAttribute :: (HasResolution a, Typeable a) => Text -> Either Text (Fixed a)
- boolFromAttribute :: Text -> Either Text Bool
- unitFromAttribute :: Text -> Either Text ()
- voidFromAttribute :: Text -> Either Text Void
- scientificFromAttribute :: Text -> Either Text Scientific
FromAttribute
class FromAttribute a where Source #
Class of types which can be get from attribute value. Method
fromAttribute
is a convenient default parameter for
parseAttribute
Since: 2.0.0
proxyFromAttribute :: FromAttribute a => Proxy a -> Text -> Either Text a Source #
Explicit methods
fixedFromAttribute :: (HasResolution a, Typeable a) => Text -> Either Text (Fixed a) Source #