On Wednesday 04 October 2006 16:16, Lyle Kopnicky wrote: > Robert Dockins wrote: > > On Tuesday 03 October 2006 22:58, Lyle Kopnicky wrote: > >> Robert Dockins wrote: > >>> On Tuesday 03 October 2006 22:00, Lyle Kopnicky wrote: > >>>> Hi folks, > >>>> > >>>> I tried to build edison-1.2.0.1-sources with the command 'make system' > >>>> but got: > >>>> > >>>> *** Exception: Line 10: Unknown field 'hs-source-dirs' > >>>> > >>>> I am using GHC 6.4.1. Any idea how to fix this? > >>> > >>> You are probably using an older version of Cabal. You can either > >>> upgrade Cabal or, from the Edison README*: > >>> > >>> > >>> This version of edison builds correctly with Cabal version 1.1.4, > >>> which is shipped with GHC 6.4.2. To build on earlier versions, > >>> it should suffice to: > >>> > >>> s/UndecidableInstances/AllowUndecidableInstances/ > >>> s/Hs-Source-Dirs:/Hs-Source-Dir:/ > >>> > >>> in the .cabal files. > >>> > >>> > >>> > >>> The 'hs-source-dir' cabal directive was depreciated in 1.1.4, but > >>> perhaps I should have waited a bit longer to change it. OTOH, there > >>> isn't any good way to deal with the change in the undecidable instances > >>> flag, since it was outright changed. Grrrr..... *grumble* incompatible > >>> changes in minor releases *grumble*. > >>> > >>> > >>> (*) Further, grrrr... in the above, I've fixed several embarrasing > >>> typos in the text of the README. > >> > >> Oh, OK, thanks! Well, now I'm running GHC 6.5.20060924, and getting the > >> error mentioned in my previous message. > > > > Whats the output of > > > > ghc-pkg -l > > > > ? > > [EMAIL PROTECTED]:~$ ghc-pkg -l > /usr/local/lib/ghc-6.5.20060924/package.conf: > Cabal-1.1.4, base-2.0, (ghc-6.5.20060924), haskell98-1.0, > parsec-2.0, readline-1.0, regex-base-0.71, regex-compat-0.71, > regex-posix-0.71, rts-1.0, stm-2.0, template-haskell-2.0, unix-1.0 > l
Hummm. Well, I confess that I'm confused. Cabal 1.1.4 should work, because that's what I have on my machines; I've just tested it here. The only thing I can think of is that the 'runhaskell' command is still bound to your old GHC, or to something else (Hugs maybe?). If that's the case, you can edit the makefile and set the 'RUNHS' variable in the first line to the full path to your 6.5 runghc. Or you can edit the .cabal files as suggested above. -- Rob Dockins Talk softly and drive a Sherman tank. Laugh hard, it's a long way to the bank. -- TMBG _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe