agrafix / elm-bridge

Haskell: Derive Elm types from Haskell types
BSD 3-Clause "New" or "Revised" License
100 stars 27 forks source link

Add parser for decoding UTC datatypes #53

Open bartavelle opened 2 years ago

bartavelle commented 2 years ago

It requires the elm-community/json-extra package for now.

domenkozar commented 10 months ago

It would be great if:

Our current workaround is:

      "import Time exposing (Posix)",
      "import Iso8601",
      "jsonDecPosix : Json.Decode.Decoder Posix",
      "jsonDecPosix = Iso8601.decoder",
      "",
      "jsonEncPosix : Posix -> Value",
      "jsonEncPosix = Iso8601.encode",