Holmusk / elm-street

:deciduous_tree: Crossing the road between Haskell and Elm
Mozilla Public License 2.0
88 stars 6 forks source link

Define instance for of `Elm` for Data.Aeson.Value #111

Closed turboMaCk closed 3 years ago

turboMaCk commented 3 years ago

In some cases users might want/need to work with raw json values on client side. Example use case might be loading some data in elm and passing them to the external js like some webcomponent. In these cases it would make sense to work with Value type on both side (in haskell with Data.Aeson.Value; in elm with Json.Decode.Value). for this we should provide the instance for Elm Data.Aeson.Value.

turboMaCk commented 3 years ago

Implemented in https://github.com/Holmusk/elm-street/pull/114 thanks @jhrcek