2016-06-06 23:16:17 +03:00
|
|
|
import "hint" HLint.Default
|
|
|
|
import "hint" HLint.Dollar
|
|
|
|
import "hint" HLint.Generalise
|
2016-06-06 23:12:23 +03:00
|
|
|
|
2016-05-26 19:58:59 +03:00
|
|
|
-- AMP fallout
|
|
|
|
error "generalize mapM" = mapM ==> traverse
|
|
|
|
error "generalize mapM_" = mapM_ ==> traverse_
|
|
|
|
error "generalize forM" = forM ==> for
|
|
|
|
error "generalize forM_" = forM_ ==> for_
|
|
|
|
error "Avoid return" =
|
|
|
|
return ==> pure
|
|
|
|
where note = "return is obsolete as of GHC 7.10"
|
2016-05-26 21:53:12 +03:00
|
|
|
|
|
|
|
error "use pure" = free . Pure ==> pure
|
2016-07-08 00:09:39 +03:00
|
|
|
error "use wrap" = free . Free ==> wrap
|
|
|
|
|
2016-05-26 21:53:12 +03:00
|
|
|
error "use extract" = headF . runCofree ==> extract
|