mirror of
https://github.com/github/semantic.git
synced 2024-11-23 16:37:50 +03:00
Correct a couple of hints.
This commit is contained in:
parent
6adc5d7413
commit
9caf8893b6
4
HLint.hs
4
HLint.hs
@ -17,8 +17,8 @@ error "Avoid return" =
|
||||
return ==> pure
|
||||
where note = "return is obsolete as of GHC 7.10"
|
||||
|
||||
error "use extract" = termAnnotation . unTerm ==> extract
|
||||
error "use unwrap" = termOut . unTerm ==> unwrap
|
||||
error "use termAnnotation" = termFAnnotation . unTerm ==> termAnnotation
|
||||
error "use termOut" = termFOut . unTerm ==> termOut
|
||||
|
||||
error "avoid head" = head
|
||||
where note = "head is partial; consider using Data.Maybe.listToMaybe"
|
||||
|
Loading…
Reference in New Issue
Block a user