avh4 / elm-upgrade

Upgrade Elm projects
https://www.npmjs.com/package/elm-upgrade
MIT License
122 stars 15 forks source link

Handle infix operators #70

Open andys8 opened 5 years ago

andys8 commented 5 years ago

I'm trying elm-upgrade on a library that exposes infix operators. I liked how the output contains:

Here are some common upgrade steps that you will need to do manually:

I would appreciate if it would recognize the use of custom operators, which are not allowed anymore and the user to replace them by hand.

andys8 commented 5 years ago

I found out, that the recommendations are based on the package dependencies and static. I'm not sure if it makes sense to have the information to replace operators in here for everybody, even if not using operators. This could be confusing.

https://github.com/avh4/elm-upgrade/blob/master/src/packageTransformations.js