diff options
Diffstat (limited to 'src/client/elm/Model')
-rw-r--r-- | src/client/elm/Model/Conf.elm | 13 | ||||
-rw-r--r-- | src/client/elm/Model/Config.elm | 18 |
2 files changed, 13 insertions, 18 deletions
diff --git a/src/client/elm/Model/Conf.elm b/src/client/elm/Model/Conf.elm new file mode 100644 index 0000000..ad71d83 --- /dev/null +++ b/src/client/elm/Model/Conf.elm @@ -0,0 +1,13 @@ +module Model.Conf + ( Conf + , confDecoder + ) where + +import Json.Decode exposing (..) + +type alias Conf = + { currency : String + } + +confDecoder : Decoder Conf +confDecoder = object1 Conf ("currency" := string) diff --git a/src/client/elm/Model/Config.elm b/src/client/elm/Model/Config.elm deleted file mode 100644 index e47b032..0000000 --- a/src/client/elm/Model/Config.elm +++ /dev/null @@ -1,18 +0,0 @@ -module Model.Config - ( Config - , configDecoder - ) where - -import Json.Decode exposing (..) - -type alias Config = - { currency : String - } - -configDecoder : Decoder Config -configDecoder = object1 Config ("currency" := string) - -defaultConfig : Config -defaultConfig = - { currency = "€" - } |