On Tue, 18 Mar 1997, Simon L Peyton Jones wrote:

# You don't say which version of ghc, nor which verison of FiniteMap you are
# using, nor do you enclose the error message.

Sorry. GHC version 0.29. FiniteMap version 6, it seems ({-# GHC PRAGMA
INTERFACE VERSION 6 #-} at the top). Compilation with verbose output appended
to this message. It's messy ;)

# My guess: it's something to do with SPECIALIZE pragmas; if so,  you can just
# delete them.

I can't see myself persuading the bods in charge of /usr/local/haskell to do
that :-) I doubt whether Steve can either.

# I'm puzzled about why it
# thinks PreludeStdIO has anything to do with it.

FiniteMap imports PreludeStdIO(Maybe). As far as I know, Maybe is only
available with -fhaskell-1.3. But the puzzling thing is, if -O is *not*
specified, and neither is -fhaskell-1.3, then my module which imports
FiniteMap compiles with no errors. (I don't really want to specify
-fhaskell-1.3 because of much continuation I/O and a strict project deadline
:-)

# GHC 2.02 has everything explicit.  No magic synonyms!

Hmph :) Does anyone know whether there are any magic synonyms other than
String in GHC 0.29? I'm trying to pre-process all type synonyms out of
function types in interface files, you see...

Many thanks,

Ed

-----compiler verbose output begin-----

ghc -fomit-derived-read -syslib ghc -syslib hbc -fglasgow-exts -O -v -fmax-sim
plifier-iterations-10 -H14M -K1M -c Convert.lhs
The Glorious Glasgow Haskell Compilation System, version 0.29 patchlevel 0

literate pre-processor:
        echo '#line 1 "Convert.lhs"' > /tmp/ghc14115.lpp; /usr/local/haskell/g
hc-0.29/lib/ghc/0.29/sparc-sun-solaris2/unlit  Convert.lhs -  >> /tmp/ghc14115
.lpp

real        0.1
user        0.0
sys         0.0

Ineffective C pre-processor:
        echo '#line 1 "Convert.lhs"' > /tmp/ghc14115.cpp; cat /tmp/ghc14115.lp
p >> /tmp/ghc14115.cpp

real        0.1
user        0.0
sys         0.0

Haskell compiler:
        /usr/local/haskell/ghc-0.29/lib/ghc/0.29/sparc-sun-solaris2/hsc ,-H ,-
N ,-W ,-I. ,-J/usr/local/haskell/ghc-0.29/lib/ghc/0.29/imports/hbc ,-J/usr/loc
al/haskell/ghc-0.29/lib/ghc/0.29/imports/ghc ,-J/usr/local/haskell/ghc-0.29/li
b/ghc/0.29/imports ,/tmp/ghc14115.cpp  -fomit-derived-read -fglasgow-exts -fsi
mplify \( -fdo-new-occur-anal -fdo-arity-expand -fkeep-spec-pragma-ids -fsimpl
-uf-use-threshold0 -fessential-unfoldings-only -fmax-simplifier-iterations1 -f
pedantic-bottoms \) -fspecialise-overloaded  -fspecialise -fsimplify \( -fdo-n
ew-occur-anal -fdo-arity-expand -ffloat-lets-exposing-whnf -ffloat-primops-ok 
-fcase-of-case -fdo-case-elim -fdo-eta-reduction -fdo-lambda-eta-expansion -fr
euse-con -fpedantic-bottoms  -fsimpl-uf-use-threshold3 -fmax-simplifier-iterat
ions-10 \) -fcalc-inlinings1 -ffull-laziness -ffoldr-build-on -fsimplify \( -f
ignore-inline-pragma -fdo-foldr-build -fdo-new-occur-anal -fdo-arity-expand -f
float-lets-exposing-whnf -ffloat-primops-ok -fcase-of-case -fdo-case-elim -fdo
-eta-reduction -fdo-lambda-eta-expansion -freuse-con -fpedantic-bottoms  -fsim
pl-uf-use-threshold3 -fmax-simplifier-iterations-10 \) -ffloat-inwards -fsimpl
ify \( -fdo-new-occur-anal -fdo-arity-expand -ffloat-lets-exposing-whnf -ffloa
t-primops-ok -fcase-of-case -fdo-case-elim -fdo-eta-reduction -fdo-lambda-eta-
expansion -freuse-con -fdo-inline-foldr-build -fdo-foldr-build -fpedantic-bott
oms  -fsimpl-uf-use-threshold3 -fmax-simplifier-iterations-10 \) -fstrictness 
-fsimplify \( -fdo-new-occur-anal -fdo-arity-expand -ffloat-lets-exposing-whnf
 -ffloat-primops-ok -fcase-of-case -fdo-case-elim -fdo-eta-reduction -fdo-lamb
da-eta-expansion -freuse-con -flet-to-case -fpedantic-bottoms  -fsimpl-uf-use-
threshold3 -fmax-simplifier-iterations-10 \) -ffloat-inwards -fsimplify \( -fd
o-new-occur-anal -fdo-arity-expand -ffloat-lets-exposing-whnf -ffloat-primops-
ok -fcase-of-case -fdo-case-elim -fdo-eta-reduction -fdo-lambda-eta-expansion 
-freuse-con -flet-to-case -fignore-inline-pragma -fdo-inline-foldr-build -fdo-
foldr-build -fpedantic-bottoms  -fsimpl-uf-use-threshold3 -fmax-simplifier-ite
rations-10 \) -fcalc-inlinings2 -fupdate-analysis -flambda-lift   -flet-no-esc
ape  -v -hi/tmp/ghc14115.hi -fasm-sparc-sun-solaris2 -S/tmp/ghc14115.s +RTS -H
14000000 -K1000000
Glasgow Haskell Compiler, version 0.29

 
"/usr/local/haskell/ghc-0.29/lib/ghc/0.29/imports/ghc/FiniteMap.hi", line 39:
    undefined type constructor: PreludeStdIO.Maybe

Compilation had errors

real       12.1
user        7.7
sys         3.3
deleting... /tmp/ghc14115.hi /tmp/ghc14115.s

rm -f /tmp/ghc14115*

-----compiler verbose output end-----


Reply via email to