Sven Panne writes:
> 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?
> 

Sure does, in more place than one. The above example was corrected in
the documentation for 2.04, but the on-line version has not been
upgraded since 2.02. I'll do so soon.

Thanks for the report,

--Sigbjorn

Reply via email to