Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
34772165
Commit
34772165
authored
Feb 13, 2014
by
Joachim Breitner
Browse files
Fix Manual hlinting patch
parent
e2cacb66
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/deSugar/Check.lhs
View file @
34772165
...
...
@@ -421,8 +421,8 @@ compare_cons _ _ = panic "Check.compare_cons: Not ConPatOut with RealDataCon"
remove_dups :: [Pat Id] -> [Pat Id]
remove_dups [] = []
remove_dups (x:xs) | any (\y -> compare_cons x y) = remove_dups xs
| otherwise = x : remove_dups xs
remove_dups (x:xs) | any (\y -> compare_cons x y)
xs
= remove_dups xs
| otherwise
= x : remove_dups xs
get_used_cons :: [(EqnNo, EquationInfo)] -> [Pat Id]
get_used_cons qs = remove_dups [pat | q <- qs, let pat = firstPatN q,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment