all repos

onasty @ 327757c9371a333d3436f0a204677742a04236cf

a one-time notes service

onasty/web/src/Data/Me.elm(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Data.Me exposing (Me, decode)

import Json.Decode as Decode exposing (Decoder)


type alias Me =
    { email : String
    , createdAt : String -- TODO: upgrade to elm/time
    }


decode : Decoder Me
decode =
    Decode.map2 Me
        (Decode.field "email" Decode.string)
        (Decode.field "created_at" Decode.string)