Open fwcd opened 3 years ago
E.g.
\x -> f x
f
\_ -> x
const x
x >> return ()
void x
maybe x id m
fromMaybe x m
fst . runState
evalState
snd . runState
execState
do
do { x }
x
let
Debug.Trace
These suggestions could be similar to what hlint suggests.
These suggestions could also be factored out into a separate linting tool that curry-language-server then integrated (i.e. depends on).
curry-language-server
E.g.
\x -> f x
tof
)\_ -> x
toconst x
)x >> return ()
tovoid x
)maybe x id m
tofromMaybe x m
,fst . runState
toevalState
,snd . runState
toexecState
, ...)do
s (do { x }
tox
)let
sDebug.Trace
importsThese suggestions could be similar to what hlint suggests.