[Haskell-cafe] lambdabot check
jacek.generowicz at cern.ch
Wed May 25 13:20:19 CEST 2011
Thanks for your wonderfully lucid, concise and complete explanation of
the problem and its solution (included below).
When I apply your patch and reinstall lambabot, I now get the
lambdabot> check True
Could not find module `ShowIO`:
It is a member of the hidden package `show-0.3.4`.
Use -v to see a list of the files searched for.
I recognize the message about -v as a ghci one. How could I inject
this -v into lambabot ?
I get the same error on both of the machines on which I am trying
this. On one of them I already have show-0.3.4 and show-0.4.1.1, on
the other I have only show-0.4.1.1.
On 2011 May 25, at 06:06, Mark Wright wrote:
> Hi Jacek and Gwern,
> In the upgrade from mueval from 0.8 to 0.8.1, some of the mueval
> line options were changed:
> --loadfile => --load-file
> --noimports => --no-imports
> For Plugins/Check.hs I change --loadfile to -l.
> To convince lambdabot to run on gentoo, I patch it to use --no-
> imports to
> avoid this problem:
> % mueval -e '1 + 2'
> Ambiguous module name `Control.Monad.Cont':
> it was found in multiple packages:
> monads-fd-0.1.0.2 mtl-184.108.40.206 monads-tf-0.1.0.0
> And I patch the lambdabot /usr/share/lambdabot-220.127.116.11/ghc-7.0.3/
> to used -XPackageImports. Then mueval works:
> % mueval --no-imports -l ~/.lambdabot/State/L.hs -e '1 + 2'
> And lambdabot works:
> % lambdabot
> plugins ................................................... done.
> lambdabot> @check True
> +++ OK, passed 100 tests.
> "OK, passed 100 tests."
> The patch is here:
> Regards, Mark
More information about the Haskell-Cafe