elm-export
elm-export copied to clipboard
Don't generate names with primes
Elm 0.18 (will be released today) won't support primes in names anymore.
We should make sure to respect that.
https://github.com/elm-lang/elm-platform/blob/master/upgrade-docs/0.18.md#no-more-primes
cc @krisajenkins
You can pass a function in Options.fieldLabelModifier that removes primes from your record field names: https://github.com/krisajenkins/elm-export/blob/master/src/Elm/Common.hs#L8
Where else are you getting primes that you need to remove?
Thanks, that should do! Would you accept a PR that does this upstream? For 0.18 and onwards this will cause issues for anyone.
That still doesn't replace everything, see the result: https://gist.github.com/anonymous/2406725a44b24288eb2a391a0210419b
@domenkozar can you provide a minimal Haskell snippet that generates invalid Elm 0.18 code?