Holmusk / elm-street

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

Overrididing the default source code generation #112

Open turboMaCk opened 3 years ago

turboMaCk commented 3 years ago

Currently the only generation hooks are settings of a file path https://hackage.haskell.org/package/elm-street-0.1.0.4/docs/Elm-Generate.html#t:Settings

However this is highly inflexible. We should at least some of

This would make it possible to combine elm-street with hand written decoders and type as well as provide an ability to write working Elm which are not implemented by the library itself. Example: https://github.com/Holmusk/elm-street/issues/111 This requires extending Types module with import Json.Decode.