Axel
Quite right; thank you for reporting it. The fix was trivial, but
we're not planning 4.08.2 for a while (if ever). So a workaround is to
write
import PrelIOBase
foo = returnIO
in your module. Or have at least one 'foreign export dynamic' in your
module.
Simon
| -----Original Message-----
| From: Axel Krauth [mailto:[EMAIL PROTECTED]]
| Sent: 05 October 2000 16:19
| To: [EMAIL PROTECTED]
| Subject: Bug report
|
|
| -- Sorry, but if ghc tells me to report it..
| --
| -- Using :The Glorious Glasgow Haskell Compilation System,
| version 4.08.1
| -- (if this is also needed) : gcc 2.95.2 ( also egcs 1.1.2)
| -- ghc -v -fglasgow-exts -i/usr/local/lib/ghc-4.08.1/imports/lang/ \
| -- -o bug bug.hs -lHSlang
| --
| -- message by ghc (ghc -v in attachment) :
| -- panic! (the `impossible' happened):
| -- tcLookupGlobalValue: <THIS>.PrelIOBase.returnIO{-0B,s-}
| -- Please report it as a compiler bug to
| [EMAIL PROTECTED]
|
| module Main where
|
| import Foreign
|
| foreign export ccall "gccd" mygcd :: Int -> Int -> Int
| main =
| do
| putStrLn "No bug"
|
| mygcd a b = if (a==b) then a
| else if (a<b) then mygcd a (b-a)
| else mygcd (a-b) a
|
|
|
| -- Bye Axel
|
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs