AsmGofer is an extension of TkGofer. TkGofer is an extension of
Gofer in order to support graphical user interfaces. Gofer is a
subset of Haskell.
AsmGofer can be viewed as TkGofer with a notion
of state. You can declare dynamic functions and redefine them
during execution. Here is one example:
"a" []] (C2 "a" []))
, ("x", C3 [C2 "a" [],C2 "a" []] (C2 "a" []))
, ("x", C3 [C2 "a" [],C2 "a" []] (C2 "a" []))
, ("x", C3 [C2 "a" [],C2 "a" []] (C2 "a" []))
, ("x", C3 [C2 "a" [],C2 "a" []] (C2 "a" []))
, ("x", C3 [C2 "a" [C2 "a" []]] (C2 "a" []))
, ("x", C3 [C2 "a" [C2 "a" []]] (C2 "a" []))
, ("x", C3 [C2 "a" [C2 "a" []]] (C2 "a" []))
, ("x", C3 [C2 "a" [C2 "a" []],C2 "a" []] (C2 "a" []))
, ("x", C3 [C2 "a" [C2 "a" []],C2 "a" []] (C2 "a" []))
, ("x", C3 [C2 "a" [],C2 "a" [C2 "a" []]] (C2 "a" []))
, ("x", C3 [] (C2 "a" []))
, ("x", C3 [] (C2 "a" []))
, ("x", C3 [C2 "a" []] (C2 "a" []))
]
data T = C2 String [T]
| C3 [T] T
---
Joachim Schmid
mail: [EMAIL PROTECTED]
Has anyone tried the ghc-4.01 binary package for sparc-sun-solaris2
with gcc-2.8.1?
I have downloaded the package and I have compiled a simple
haskell-program.
All I get is a just a core dump (Bus error). I'm not sure if this is a
problem with my sun or a bug in the binary distribution.
Joachim
In the Online User-documentation I found the following example:
module GHCmain ( mainPrimIO ) where
import PreludeGlaST
mainPrimIO :: PrimIO ()
mainPrimIO = do
sleep 5
_ccall_ printf "%d\n" (14::Int)
sleep :: Int - PrimIO ()
sleep t = _ccall_ sleep t
Compiling this