aboutsummaryrefslogtreecommitdiff
path: root/src/client/Model/Conf.elm
blob: 308fa044b4bdd64692778631742c363375daa2aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Model.Conf exposing
  ( Conf
  , confDecoder
  )

import Json.Decode as Decode exposing (Decoder)

type alias Conf =
  { currency : String
  }

confDecoder : Decoder Conf
confDecoder = Decode.map Conf (Decode.field "currency" Decode.string)