After some hours of debugging Haskell code which involves the FFI, I think
I've found a bug or at least an inconsistency between code compiled with GHC
and code executed by GHCi: My program calls out to native library code which
uses usleep and/or nanosleep, and things work well when using the
Am Mittwoch, 28. Dezember 2005 13:20 schrieb Sven Panne:
[ usleep/nanosleep trouble deleted... ]
I forgot something in my last email:
-- from fptools/libraries/unix/System/Posix/Unistd.hs ---
usleep :: Int - IO ()
usleep 0 = return ()
#ifdef USLEEP_RETURNS_VOID
usleep usecs =
Tomasz Zielonka wrote:
On Tue, Dec 27, 2005 at 08:12:20PM +0100, Christian Maeder wrote:
Already the following bit exhibits unexpected memory consumption:
main = mapM_ print $ take (n * 5) $ drop (n * 3) [1..]
n = 10
I think it's the (succ (succ (succ ...))) thunk. When you change it to