4 ms·
Nice article. One counter point though, OP uses Elm-bridge to generate Elm types from Haskell. I'd advise not to. Elm-bridge is not maintained anymore, lacks d
by matsutsu 6y ago
Nice article. One counter point though, OP uses Elm-bridge to generate Elm types from Haskell. I'd advise not to.
Elm-bridge is not maintained anymore, lacks documentation and some useful feature (no phantom types for example). https://github.com/Holmusk/elm-street https://github.com/Holmusk/elm-street is probably a more viable solution though I've never tried it!
- boxed 6y agoIt's probably better than to roll your own. And you do need code generation for elm.
- yakshaving_jgt 6y agoWhoops! I misremembered. I think we originally considered elm-bridge, but we're actually using haskell-to-elm[0]. I am familiar with Veronika's work and it is consistently of high quality, so I don't doubt elm-street would be a solid choice. In fact, elm-street looks like it supports generating exhaustive sum type lists, which might be the killer feature over the alternatives that leads me to switch. I'll make a correction to the article. [0]: https://hackage.haskell.org/package/haskell-to-elm https://hackage.haskell.org/package/haskell-to-elm