ndmitchell / hlint

Haskell source code suggestions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hlint incorrectly suggests renaming shadowed "map" when generalise group is on

isovector opened this issue · comments

Given

- group: {name: generalise, enabled: true}

hlint will suggest the following illegal transformation:

- test map = map
+ test map = fmap

The fix is to fully qualify the following:

- warn: {lhs: map, rhs: fmap}

to

    - warn: {lhs: Data.List.map, rhs: fmap}