Michael Weber wrote:
It seems, today's GHC made the problem disappear (or, at least, it
disappeared between 1999/12/06 and 2000/01/09), my test case now
works as expected...
Sven, what about yours? [...]
*Sigh* A similar problem just occurred again! Given the following
code snippet from
On Fri, Jan 07, 2000 at 09:44:09 +0100, Michael Weber wrote:
Unfortunately, this neithers explains Sven's problem nor mine, since
unpackCStringIO needn't be present to show the error.
It seems, today's GHC made the problem disappear (or, at least, it
disappeared between 1999/12/06 and
Consider the following program:
\begin{code}
{-# OPTIONS -fglasgow-exts #-}
import Addr
import CString
import Monad (when)
foreign import ccall "free" unsafe free :: Addr - IO ()
main = do
(addr::Addr) - _casm_ ``%r = strdup ("This is esoteric.");''
if addr /= nullAddr