help needed for adding isWHNF primop to 5.00.2

Simon Marlow [email protected]
Mon, 30 Jul 2001 10:10:11 +0100


> Hi GHC people,
>=20
> I would like to add a primitive to GHC 5.00.2 of the form:
>=20
>    isWHNF :: a -> Bool
>=20
> I was able to do (something like) this a while ago in 4.06,=20
> but have got
> stuck trying to do the same with 5.00.2.

One problem is that you didn't call it 'reallyUnsafeIsWHNF#' :-)  (or
you could give it an IO type, to follow the current trend).

Simon