Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
116e4e36
Commit
116e4e36
authored
Sep 07, 2006
by
simonpj@microsoft.com
Browse files
Comments only
parent
1b1c97c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/coreSyn/CoreUtils.lhs
View file @
116e4e36
...
...
@@ -496,6 +496,9 @@ It returns True iff
soon,
without raising an exception,
without causing a side effect (e.g. writing a mutable variable)
NB: if exprIsHNF e, then exprOkForSpecuation e
E.G.
let x = case y# +# 1# of { r# -> I# r# }
in E
...
...
@@ -621,7 +624,7 @@ exprIsHNF other = False
-- There is at least one value argument
app_is_value (Var fun) args
| isDataConWorkId fun
-- Constructor apps are values
| isDataConWorkId fun -- Constructor apps are values
|| idArity fun > valArgCount args -- Under-applied function
= check_args (idType fun) args
app_is_value (App f a) as = app_is_value f (a:as)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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