projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2002-04-05 23:24:25 by sof]
[ghc-hetmet.git]
/
ghc
/
compiler
/
stranal
/
WorkWrap.lhs
diff --git
a/ghc/compiler/stranal/WorkWrap.lhs
b/ghc/compiler/stranal/WorkWrap.lhs
index
ab2b19e
..
b12d05b
100644
(file)
--- a/
ghc/compiler/stranal/WorkWrap.lhs
+++ b/
ghc/compiler/stranal/WorkWrap.lhs
@@
-29,7
+29,7
@@
import VarEnv ( isEmptyVarEnv )
import Maybes ( orElse )
import CmdLineOpts
import WwLib
import Maybes ( orElse )
import CmdLineOpts
import WwLib
-import Util ( lengthIs )
+import Util ( lengthIs, notNull )
import Outputable
\end{code}
import Outputable
\end{code}
@@
-235,7
+235,7
@@
tryWW is_rec fn_id rhs
| otherwise = fn_id `setIdNewStrictness`
StrictSig (mkTopDmdType wrap_dmds res_info)
| otherwise = fn_id `setIdNewStrictness`
StrictSig (mkTopDmdType wrap_dmds res_info)
- is_fun = not (null wrap_dmds)
+ is_fun = notNull wrap_dmds
is_thunk = not is_fun && not (exprIsValue rhs)
---------------------
is_thunk = not is_fun && not (exprIsValue rhs)
---------------------