Update ffi001.stdout (was simply wrong) and change fed001.hs in line with
library changes.
import Foreign
import Monad
+import Addr
newtype XPtr a = XPtr Addr
-unXPtr (XPtr x) = x
+unXPtr (XPtr (A# x)) = x
type CInt = Int32
type CSize = Word32
-{-# OPTIONS -fglasgow-exts #-}
-
--- !!! A simple FFI test
--- This one provoked a bogus renamer error in 4.08.1:
---
-module Main where
-
-import Foreign
-
-foreign export ccall "gccd" mygcd :: Int -> Int -> Int
-
-main = 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
+No bug