[Haskell-cafe] Can't build Lambdabot

Daniel Fischer daniel.is.fischer at web.de
Wed Jun 20 10:41:40 EDT 2007

Okay,  if lambdabot isn't as cool as I believe, it's definitely not worth the 
fuss. Although, it comes with hoogle and djinn, which are quite neat.

Am Dienstag, 19. Juni 2007 00:41 schrieb Stefan O'Rear:
> Your lambdabot is too old.  It needed fixes to work with GHC 6.6's
> version of the haskell-src package.
> Stefan

Complaint: then why is it in Hackage? 
I got it from there only monday, if it's obsolete (won't work with ghc 
later than 6.4.x), please mark it so or remove it.
I darcs got lambdabot yesterday (I have no DSL, so it took over 30 minutes, 
that's why I prefer .tar.* versions), it's still tagged 4.0, that makes me a 
little uneasy, but I'll see.
So now I also need zlib, binary>=2.0 and arrows.
Okay, got 'em.
Next complaint: the building instructions aren't good enough for dummies like 

What changes to make to Config.hs?
The fortunePath is explained well, but
What should the fptoolsPath be?
Or, what should be in the directory it points to?
Somebody please tell me.
And what's the outputDir for?
Should I change it or not?

One more:

Note: If you want lambdabot to be able to evaluate expressions
(e.g., "> 1 + 1" evaluates to 2) then you'll need hs-plugins and also
before './Setup.hs configure --bindir=`pwd`' you need to copy
lambdabot.cabal.plugins to lambdabot.cabal.

I have the impression that I need plugins anyway, and lambdabot.cabal.plugins 
seems to be pre-6.6, lists fps>=0.7 among the Build-Depends, but not zlib, 
binary>=0.2, arrows, regex-compat, regex-posix, and would try to build 
lambdabot-dynamic, apparently, which in the comment above is dubbed 'Not 
quite there yet'. Suspicious.

So I did a bit of guessing and started the build.
Build failed compiling Parser.hs: not in scope as_name &c.
In the new Parser.hs, there is

#if __GLASGOW_HASKELL__ > 606
as_name = HsIdent "as"
hiding_name = HsIdent "hiding"
qualified_name = HsIdent "qualified"
minus_name = HsSymbol "-"
pling_name = HsSymbol "!"

Hrm, I have ghc 6.6.1, that seems to define __GLASGOW_HASKELL__ as 606,
so I changed '>' to '>=', hoping for the best.
Then evereything built fine until...
compiling ShowQ.hs. Two instances Arbitrary (Maybe a), one there, one in 
Okay, the only way round that which I could see, was commenting out the 
offending instance in ShowQ.
Then no more build failures, unfortunately:
$ ./lambdabot
Initialising plugins ................Speicherzugriffsfehler

I haven't even the foggiest what might be causing that.
If it were the fact that my fptools directory is empty, I'd expect a better 

Now what I need is to figure out how to get lambdabot going at all and how to 
use ft, runplugs, smallcheck & quickcheck (djinn and hoogle provide 
information on how to use them, the others don't).

It would be much appreciated if at least pointers to such information were 
included in the README. Even more if someone could correctly guess what's 
wrong with my bot.


More information about the Haskell-Cafe mailing list