Skip to content
Snippets Groups Projects
Commit 0d8a3d2a authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

[project @ 1998-12-23 10:24:06 by simonpj]

Fix strictness of NewArrayOp and NewMutVarOp in PrimOp.lhs
parent 67afaea6
No related merge requests found
......@@ -856,13 +856,21 @@ primOpStrictness :: PrimOp -> ([Demand], Bool)
-- Use only the ones you ned.
primOpStrictness SeqOp = ([wwLazy], False)
primOpStrictness NewArrayOp = ([wwPrim, wwLazy, wwPrim], False)
primOpStrictness WriteArrayOp = ([wwPrim, wwPrim, wwLazy, wwPrim], False)
primOpStrictness NewMutVarOp = ([wwLazy, wwPrim], False)
primOpStrictness WriteMutVarOp = ([wwPrim, wwLazy, wwPrim], False)
primOpStrictness PutMVarOp = ([wwPrim, wwLazy, wwPrim], False)
primOpStrictness CatchOp = ([wwLazy, wwLazy], False)
primOpStrictness RaiseOp = ([wwLazy], True) -- NB: True => result is bottom
primOpStrictness MkWeakOp = ([wwLazy, wwLazy, wwLazy, wwPrim], False)
primOpStrictness MakeStablePtrOp = ([wwLazy, wwPrim], False)
-- The rest all have primitive-typed arguments
primOpStrictness other = (repeat wwPrim, False)
\end{code}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment