Shooting yourself in the foot, a contribution

Simon Marlow simonmar@microsoft.com
Fri, 23 May 2003 13:49:25 +0100


> In Haskell, it's provably impossible to shoot yourself in the foot=20
> without using unsafeShootSelfInFoot. Curiously, this doesn't=20
> stop people=20
> using unsafeShootSelfInFoot in released software.

You can always use shootSelfInFootIO, but you need to be in the IO monad
and use the MutableFoot type.  The purely functional version,
shootSelfInFoot, requires human cloning and won't be available for a
couple of releases.

Cheers,
	Simon