I got exactly your (Text String) error, and Simon taught me about the solution
below.
I have not seen the error you give below, but it smells like version skew.
If I were you I'd start with a totally fresh tree and make.
It's a problem that when you pull then make 'clean' doesn't necessarily make
clean enough
SUGGESTION (Ian, Simon): 'clean' should remove
*all* .hi, .hi-boot, .o files
rather than just ones that relate to source files
Simon
| -----Original Message-----
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
| Behalf Of Manuel M T Chakravarty
| Sent: 07 July 2008 06:57
| To: [email protected]
| Subject: Re: Is the HEAD dead?
|
| In the meantime, I followed SimonPJ's suggestion on the ghc list to
|
| > If you do a 'darcs pull' then 'make distclean' then 'make' you may
| > (just now) get errors of various kinds when 'make' reaches utils/ghc-
| > pkg.
| >
| > Solution: cd compat; rm **/*.{hi,o}
| >
| > Reason: after you pull, make distclean doesn't clean droppings from
| > previous incarnations of the build system.
|
| That alters the error message to,
|
| /opt/local/bin/ghc -package-conf /Users/chak/Code/ghc-test/libraries/
| bootstrapping.conf -Werror -H64m -O0 -fasm -cpp -Wall -fno-warn-name-
| shadowing -fno-warn-unused-matches -DUSING_COMPAT -i../../compat -
| package directory -package pretty -package containers -Rghc-timing -O
| -fasm -package unix -package containers -package Cabal -c Main.hs -
| o Main.o -ohi Main.hi
|
| Main.hs:325:2:
| Couldn't match expected type `ReadP r PackageIdentifier'
| against inferred type
| `Cabal-1.5.2:Distribution.Compat.ReadP.ReadP
| r1 a'
| In the first argument of `(+++)', namely `parse'
| In the expression:
| parse
| +++
| (do n <- parse
| string "-*"
| return (PackageIdentifier {pkgName = n, pkgVersion =
| globVersion}))
| In the definition of `parseGlobPackageId':
| parseGlobPackageId = parse
| +++
| (do n <- parse
| string "-*"
| return (PackageIdentifier {pkgName =
| n, pkgVersion = globVersion}))
|
| Main.hs:829:55:
| Couldn't match expected type `ReadP a a'
| against inferred type
| `Cabal-1.5.2:Distribution.Compat.ReadP.ReadP
| r a1'
| In the first argument of `readP_to_S', namely `parse'
| In a stmt of a list comprehension: (x, ys) <- readP_to_S parse str
| In the scrutinee of a case expression:
| [x :: PackageIdentifier |
| (x, ys) <- readP_to_S parse str, all isSpace ys]
|
| Manuel
|
| Manuel M T Chakravarty:
| > Trying to validate the HEAD I get:
| >
| > /opt/local/bin/ghc -package-conf /Users/chak/Code/ghc-test/libraries/
| > bootstrapping.conf -Werror -H64m -O0 -fasm -cpp -Wall -fno-warn-name-
| > shadowing -fno-warn-unused-matches -DUSING_COMPAT -i../../compat -
| > package directory -package pretty -package containers -Rghc-timing -
| > O -fasm -package unix -package containers -package Cabal -c
| > Main.hs -o Main.o -ohi Main.hi
| >
| > Main.hs:327:11:
| > No instance for (Text String)
| > arising from a use of `parse' at Main.hs:327:11-15
| > Possible fix: add an instance declaration for (Text String)
| > In a stmt of a 'do' expression: n <- parse
| > In the second argument of `(+++)', namely
| > `(do n <- parse
| > string "-*"
| > return
| > (PackageIdentifier {pkgName = n, pkgVersion =
| > globVersion}))'
| > In the expression:
| > parse
| > +++
| > (do n <- parse
| > string "-*"
| > return (PackageIdentifier {pkgName = n, pkgVersion =
| > globVersion}))
| >
| > This is using 6.8.3 as the bootstrap compiler on MacOS 10.5.4 (Intel).
| >
| > Manuel
|
| _______________________________________________
| Cvs-ghc mailing list
| [email protected]
| http://www.haskell.org/mailman/listinfo/cvs-ghc
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc