| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Text.XML.DOM.Parser.FromAttribute
Contents
Synopsis
- class FromAttribute a where
- fromAttribute :: Text -> Either Text a
- 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
Methods
Instances
| FromAttribute Void Source # | |
Defined in Text.XML.DOM.Parser.FromAttribute | |
| FromAttribute Scientific Source # | |
Defined in Text.XML.DOM.Parser.FromAttribute Methods fromAttribute :: Text -> Either Text Scientific Source # | |
| FromAttribute Text Source # | |
Defined in Text.XML.DOM.Parser.FromAttribute | |
| FromAttribute String Source # | |
Defined in Text.XML.DOM.Parser.FromAttribute | |
| FromAttribute Integer Source # | |
Defined in Text.XML.DOM.Parser.FromAttribute | |
| FromAttribute () Source # | |
Defined in Text.XML.DOM.Parser.FromAttribute | |
| FromAttribute Bool Source # | |
Defined in Text.XML.DOM.Parser.FromAttribute | |
| FromAttribute Char Source # | |
Defined in Text.XML.DOM.Parser.FromAttribute | |
| FromAttribute Double Source # | |
Defined in Text.XML.DOM.Parser.FromAttribute | |
| FromAttribute Int Source # | |
Defined in Text.XML.DOM.Parser.FromAttribute | |
| (Typeable a, HasResolution a) => FromAttribute (Fixed a) Source # | |
Defined in Text.XML.DOM.Parser.FromAttribute | |
proxyFromAttribute :: FromAttribute a => Proxy a -> Text -> Either Text a Source #
Explicit methods
fixedFromAttribute :: (HasResolution a, Typeable a) => Text -> Either Text (Fixed a) Source #