[Haskell-beginners] Compiling afrob from Yampa

Daniel Fischer daniel.is.fischer at web.de
Sat Jun 12 15:42:47 EDT 2010


On Saturday 12 June 2010 21:11:37, Nathan Huesken wrote:
> Hi,
>
> I am trying to learn yampa and downloaded the package, also containing
> afrob from the homepage. I installed arrows and HGL over cabal.

I think you should have installed Yampa via cabal, too,

cabal install Yampa

would've gotten you Yampa-0.9.2.3

> Now I go into the afrob directory and type make, I get:
>
> make -C src
> make[1]: Entering directory `/home/ls/tmp/Yampa-0.9.1/afrob-0.2/src'
> make -C Common
> make[2]: Entering directory
> `/home/ls/tmp/Yampa-0.9.1/afrob-0.2/src/Common' ghc -M -optdep-f
> -optdep.hs_dependences
> -optdep--exclude-directory=/usr/local/lib/ghc/imports/arrow:/usr/local/l
>ib/ghc/imports/afrp -fglasgow-exts -O -package lang
> -i/usr/local/lib/ghc/imports/arrow:/usr/local/lib/ghc/imports/afrp
> AFrob.hs AFrobDiagnostics.hs AFrobPhysicalDimensions.hs AFrobRobotIO.hs
> AFrobRobotSimFake.hs   		 || (rm -f .hs_dependences ;
> exit 1)
>
> on the commandline:
>     Warning: -optdep-f is deprecated: Use -dep-makefile instead
> <command line>: unknown package: lang
> ghc -c  -fglasgow-exts -O -package lang
> -i/usr/local/lib/ghc/imports/arrow:/usr/local/lib/ghc/imports/afrp  -o
> AFrob.o AFrob.hs <command line>: unknown package: lang make[2]: ***
> [AFrob.o] Error 1 make[2]: Leaving directory
> `/home/ls/tmp/Yampa-0.9.1/afrob-0.2/src/Common' make[1]: *** [Common]
> Error 2 make[1]: Leaving directory
> `/home/ls/tmp/Yampa-0.9.1/afrob-0.2/src' make: *** [src] Error 2
>
> So I suppose I am missing the "lang" package ?!? How do I get it?

I think maybe "lang" was a package way back in ancient times.
From a short look at the imports in afrob, it might be what now is 
haskell98.

Considering the homepage says "Version 0.9.1 is a minor update of 0.9, 
including a version of HGL that should compile with GHC 5.04.1"

I don't think it will be very easy to get it going now, too many API 
changes in the meantime.

It also mentions the package concurrent, which doesn't exist either.

You can try making it work by removing explicit packages from the ghc-
invocations in the makefiles and adding the --make flag

>
> Thanks!
> Nathan



More information about the Beginners mailing list