1
1
mirror of https://github.com/github/semantic.git synced 2024-11-27 12:57:49 +03:00

Add hints to avoid redundant uses of pure.

This commit is contained in:
Rob Rix 2018-06-19 08:36:00 -04:00
parent 88499cb0ae
commit d914385b2a

View File

@ -33,3 +33,6 @@ error "avoid last" = last
where note = "last is partial; consider pattern-matching"
error "use maybeM" = maybe a pure ==> maybeM a
error "avoid redundant pure" = f <$> pure a <*> b ==> f a <$> b
error "avoid redundant pure" = f <$> pure a <* b ==> f a <$ b