Holmusk / elm-street

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

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

Closed HugoPeters1024 closed 2 years ago

HugoPeters1024 commented 2 years ago

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?

jhrcek commented 2 years ago

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

jhrcek commented 2 years ago

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