Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
dd08967f
Commit
dd08967f
authored
Jan 27, 2005
by
simonpj
Browse files
[project @ 2005-01-27 15:52:09 by simonpj]
Wibble
parent
a4124cf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/prelude/PrelRules.lhs
View file @
dd08967f
...
...
@@ -381,7 +381,7 @@ For dataToTag#, we can reduce if either
(b) the argument is a variable whose unfolding is a known constructor
\begin{code}
dataToTagRule [ty1, Var tag_to_enum `App` ty2 `App` tag]
dataToTagRule [
Type
ty1, Var tag_to_enum `App`
Type
ty2 `App` tag]
| Just TagToEnumOp <- isPrimOpId_maybe tag_to_enum
, ty1 `coreEqType` ty2
= Just tag -- dataToTag (tagToEnum x) ==> x
...
...
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