| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Panfiguration.FromParam
Contents
Synopsis
- class FromParam a where
- fromParam :: String -> Either String a
- fromParamList :: String -> Either String [a]
- mergeParams :: a -> a -> (Ordering, a)
- readFromParam :: forall a. (Typeable a, Read a) => String -> Either String a
- newtype Secret a = Secret {
- unSecret :: a
- newtype Collect a = Collect {
- unCollect :: [a]
Documentation
class FromParam a where Source #
Minimal complete definition
Nothing
Methods
fromParam :: String -> Either String a Source #
Parse a parameter
fromParamList :: String -> Either String [a] Source #
mergeParams :: a -> a -> (Ordering, a) Source #
Merge two parameters. The Ordering indicates which side of the arguments is used.
Instances
Wrappers
A newtype wrapper to distinguish confidential values.
show and error messages from fromParam mask its contents.
Collect all the specified parameters instead of overriding
Instances
| Monoid (Collect a) Source # | |
| Semigroup (Collect a) Source # | |
| Show a => Show (Collect a) Source # | |
| Eq a => Eq (Collect a) Source # | |
| Ord a => Ord (Collect a) Source # | |
| FromParam a => FromParam (Collect a) Source # | |