Joachim Schmid wrote:
> 
> 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 example with ghc-2.02 results to
> > GHCMain.hs:10:1: wildcard in expression on input: "sleep"

Replacing PreludeGlaST with GlaExts (Sigbjorn promised not to rename or
move that interface ;-) and using the -fglasgow-exts flag works, at
least with ghc-2.04. (I don't have a 2.02 around here anymore, our PCs
only have 4GB local discs :-))

Maybe the docs need a fix?

-- 
Sven Panne                                        Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik                     FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen              Oettingenstr. 67
mailto:[EMAIL PROTECTED]            D-80538 Muenchen
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne

Reply via email to