Holmusk / elm-street

:deciduous_tree: Crossing the road between Haskell and Elm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Translate haskell string type to elm string type instead of List Char

HugoPeters1024 opened this issue · comments

Due to the helpful derivation of Elm a => Elm [a], the String datatype will have an Elm definition of List Char which is not desirable in almost all cases. Is there a way to make an overlapping typeclass instance that will handle this edge case?

I agree, I already stumbled upon this annoying behavior multiple times.
Let me see if I can change it without breaking too many things.

I published 0.2.0.0 version of this package containing the fix to hackage.
https://hackage.haskell.org/package/elm-street-0.2.0.0