Dear Bug-Chasers,

ghc has somehow lost the function space ;-).

> module ReaderMonad            (  module ReaderMonad  )
> where

> instance Monad ((->) r) where
>     return a                  =  \v -> a
>     f >>= k                   =  \v -> let a = f v in k a v

complaining:

ghc.lhs:6: type constructor or class not in scope: ->

Lost in space, Ralf

===============================================================================

> ghc -c -v ghc.lhs
The Glorious Glasgow Haskell Compilation System, version 2.03, patchlevel 0

literate pre-processor:
        echo '#line 1 "ghc.lhs"' > /tmp/ghc3776.lpp && 
/home/III/a/ralf/FP/fptools.sparc/ghc/driver/../utils/unlit/unlit  ghc.lhs -  >> 
/tmp/ghc3776.lpp

real        0.0
user        0.0
sys         0.0

Effective command line: -i/home/III/a/ralf/TBoA/GHC/Import 
-L/home/III/a/ralf/TBoA/GHC/lib -lbn -c -v

Ineffective C pre-processor:
        echo '#line 1 "ghc.lhs"' > /tmp/ghc3776.cpp && cat /tmp/ghc3776.lpp >> 
/tmp/ghc3776.cpp

real        0.0
user        0.0
sys         0.0
ghc-2.03:compile:Output file ghc.o doesn't exist
ghc-2.03:compile:Interface file ghc.hi doesn't exist
ghc-2.03:recompile:Input file ghc.lhs newer than ghc.o

Haskell compiler:
        /home/III/a/ralf/FP/fptools.sparc/ghc/driver/../compiler/hsc ,-W 
,/tmp/ghc3776.cpp  -fignore-interface-pragmas -fomit-interface-pragmas -fsimplify \(  
-ffloat-lets-exposing-whnf -ffloat-primops-ok -fcase-of-case -freuse-con 
-fpedantic-bottoms -fsimpl-uf-use-threshold0 -fessential-unfoldings-only 
-fmax-simplifier-iterations4 \)   
-himap=/home/III/a/ralf/TBoA/GHC/Import%.hi:.%.hi:/home/III/a/ralf/FP/fptools.sparc/ghc/driver/../lib/required%.hi:/home/III/a/ralf/FP/fptools.sparc/ghc/driver/../lib/ghc%.hi:/home/III/a/ralf/FP/fptools.sparc/ghc/driver/../lib/glaExts%.hi:/home/III/a/ralf/FP/fptools.sparc/ghc/driver/../lib/concurrent%.hi
   -v -hifile=/tmp/ghc3776.hi -S=/tmp/ghc3776.s +RTS -H6000000 -K1000000
Glasgow Haskell Compiler, version 2.03, for Haskell 1.4

 
ghc.lhs:6: type constructor or class not in scope: ->


Compilation had errors

real        1.5
user        1.1
sys         0.0
deleting... /tmp/ghc3776.hi /tmp/ghc3776.s

rm -f /tmp/ghc3776*

Reply via email to