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
e2cacb66
Commit
e2cacb66
authored
Feb 13, 2014
by
Joachim Breitner
Browse files
Manual hlinting: or (map f) = any f
parent
9f607eeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
compiler/deSugar/Check.lhs
View file @
e2cacb66
...
...
@@ -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) |
or (map
(\y -> compare_cons x y)
xs)
= remove_dups xs
| otherwise
= x : remove_dups xs
remove_dups (x:xs) |
any
(\y -> compare_cons x y) = 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,
...
...
compiler/nativeGen/X86/Instr.hs
View file @
e2cacb66
...
...
@@ -788,7 +788,7 @@ i386_insert_ffrees
->
[
GenBasicBlock
Instr
]
i386_insert_ffrees
blocks
|
or
(
map
(
any
is_G_instr
)
[
instrs
|
BasicBlock
_
instrs
<-
blocks
]
)
|
any
(
any
is_G_instr
)
[
instrs
|
BasicBlock
_
instrs
<-
blocks
]
=
map
insertGFREEs
blocks
|
otherwise
=
blocks
...
...
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