avh4 / elm-upgrade

Upgrade Elm projects

Home Page:https://www.npmjs.com/package/elm-upgrade

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

List.range conversion for [Namespace.exp1..Namespace.exp2]

manuscrypt opened this issue · comments

Not sure, if this should be on elm-format after the last one I posted.
Here is the piece of code that didn't convert correctly:

 let
        all =
            List.map (String.fromChar << Char.fromCode)
                [Ascii.fromCode..Ascii.toCode]

where

fromCode : Int
fromCode =
    32


toCode : Int
toCode =
    126

Thanks again for a great tool!

commented

This should be on elm format 👍