[Haskell-cafe] Finding dependencies in cabal

2010-10-18 Thread dlb
OK, I'm trying to install Haskore and it depends on an old version of
QuickCheck.  I'm happy to hack and update, but is there any way of finding
out which modules depend on QuickCheck rather than going through each file
one by one?  The build-depends is right in the cabal file, where it should
be; however, I don't know who puts it there when the cabal package was
built.  Is there any way to find out?

Dave Barton


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Actually loading a Cabal package in GHCi

2010-07-11 Thread dlb
Daniel and Filipe, both of you, thank you.

Let me be specific.  I have done a "cabal install Haskore" and also
downloaded some HasChorus source, which uses Haskore.  I was imprecise
before: the package is there, I just can't see it.  As follows:

---

d...@hypno:~/haschorus-1.2.1$ ghci
GHCi, version 6.10.4: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Prelude> :m Haskore
Prelude Haskore> :l HasScales
[1 of 1] Compiling HasScales( HasScales.lhs, interpreted )

HasScales.lhs:33:16:
Not in scope: type constructor or class `AbsPitch'



And so on (lots of similar errors).  Haskore defines AbsPitch.  I can't
even load Haskore, because it is a "package module", to wit:

-

Prelude Haskore> :l Haskore

: module `Haskore' is a package module
Failed, modules loaded: none.



So that's where I am.  I don't know how to make the stuff Haskore has
visible to the modules I'm working with in an interpreted context.

Again, I know this is easy; I just can't figure it out!

Dave Barton


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Actually loading a Cabal package in GHCi

2010-07-11 Thread dlb
OK, I know this is a newbie kind of thing (I guess I am a newbie to GHCi).
 I've been over and over and over the wiki and I just can't find the
answer to this very, very elementary question.  How can I load a package
that I've downloaded using Cabal into GHCi?  When I do the :l, it just
doesn't see the thing.  On one level, this is clear: the downloaded Cabal
packages (yes, more than one) are under .cabal in $HOME and not in the
lib/ghc area.  OK, fine.  But there's no package data base to point to so
that the packages can be loaded.

This just *has* to be a simple thing, but I just can't find it, no matter
how flat my head gets beating against the wall.  I apologize for the
density of my skull, but can someone point me in the right direction here?

Thanks.

Dave Barton
University of Toronto


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Failure to load hmatric

2010-02-02 Thread dlb
OK, I'm working on matrix stuff in Haskell now (I've been trying to get
the professor to approve that) and when I use cabal install to install
hmatrix, it fails at HUnit with:
---
Configuring HUnit-1.2.2.1...
Preprocessing library HUnit-1.2.2.1...
Preprocessing executables for HUnit-1.2.2.1...
Building HUnit-1.2.2.1...
[1 of 5] Compiling Test.HUnit.Terminal ( Test/HUnit/Terminal.hs,
dist/build/Test/HUnit/Terminal.o )
[2 of 5] Compiling Test.HUnit.Lang  ( Test/HUnit/Lang.hs,
dist/build/Test/HUnit/Lang.o )
[3 of 5] Compiling Test.HUnit.Base  ( Test/HUnit/Base.hs,
dist/build/Test/HUnit/Base.o )
[4 of 5] Compiling Test.HUnit.Text  ( Test/HUnit/Text.hs,
dist/build/Test/HUnit/Text.o )
[5 of 5] Compiling Test.HUnit   ( Test/HUnit.hs,
dist/build/Test/HUnit.o )
/usr/bin/ar: creating dist/build/libHSHUnit-1.2.2.1.a

Test/HUnit/Lang.hs:22:1: lexical error at character 'i'
cabal: Error: some packages failed to install:
HUnit-1.2.2.1 failed during the building phase. The exception was:
exit: ExitFailure 1


Short term question:  what the heck do I do with this?

Long term question: how can I handle cabal failures of this type without
bothering the list every time?

Dave Barton
University of Toronto


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe