diff options
author | Joris | 2016-03-26 20:29:15 +0100 |
---|---|---|
committer | Joris | 2016-03-26 20:29:36 +0100 |
commit | 2e411664ce8da96fd50340b1ecb9e6e2e16f6ca2 (patch) | |
tree | 4d9399723a470a2fcd24b1df05aeb481468492de /Data/ConfigManager/Types | |
parent | 88aef982ff7a1be7fba2abf7264773b511608404 (diff) |
Parse durations
Diffstat (limited to 'Data/ConfigManager/Types')
-rw-r--r-- | Data/ConfigManager/Types/Internal.hs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Data/ConfigManager/Types/Internal.hs b/Data/ConfigManager/Types/Internal.hs index c4d5d0e..4459b01 100644 --- a/Data/ConfigManager/Types/Internal.hs +++ b/Data/ConfigManager/Types/Internal.hs @@ -4,10 +4,11 @@ module Data.ConfigManager.Types.Internal , Name , Value , Requirement(..) + , Configured + , convert ) where import Data.Text (Text) - import Data.HashMap.Strict -- | Configuration data. @@ -37,3 +38,9 @@ data Requirement = Required | Optional deriving (Eq, Read, Show) + +-- | This class represents types that can be converted /from/ a value /to/ a +-- destination type + +class Configured a where + convert :: Value -> Maybe a |