summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/prelude/primops.txt.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/prelude/primops.txt.pp b/compiler/prelude/primops.txt.pp
index 5047b3cb63..48dd76873a 100644
--- a/compiler/prelude/primops.txt.pp
+++ b/compiler/prelude/primops.txt.pp
@@ -1481,7 +1481,10 @@ primop RaiseOp "raise#" GenPrimOp
-- one kind of bottom into another, as it is allowed to do in pure code.
--
-- But we *do* want to know that it returns bottom after
--- being applied to two arguments
+-- being applied to two arguments, so that this function is strict in y
+-- f x y | x>0 = raiseIO blah
+-- | y>0 = return 1
+-- | otherwise = return 2
primop RaiseIOOp "raiseIO#" GenPrimOp
a -> State# RealWorld -> (# State# RealWorld, b #)