[Haskell-cafe] possible bug in default module lookup scheme / or invalid haskell?

Brandon S Allbery KF8NH allbery at ece.cmu.edu
Sun Jul 18 15:55:09 EDT 2010

Hash: SHA1

On 7/18/10 14:18 , Anthony Cowley wrote:
> On Sun, Jul 18, 2010 at 1:55 PM, Carter Schonwald
> <carter.schonwald at gmail.com> wrote:
>> are you proposing that a reasonable workaround in my use case is to do
>> :cd ..
>> :r
>> this seems like a reasonableish approach, or was there a different example
>> you had in mind?
> Yes, that is what I had in mind. The typical scenario for me is to be
> editing a file in emacs, C-c-C-l it, and have GHCi complain. I then
> issue a ":cd .." in GHCi, and my subsequent loads are properly rooted
> at top of the project directory.

The fundamental problem is that ghci has no concept of "projects".  The
correct place for this is in Cabal, which *does* have project support, but
as yet it has no support for ghci.  It's conceivable that the ghci user
commands capability could be used to find (and optionally) parse a *.cabal
file to identify a package root, at the price of an initial slowdown if you
didn't have one.

- -- 
brandon s. allbery     [linux,solaris,freebsd,perl]      allbery at kf8nh.com
system administrator  [openafs,heimdal,too many hats]  allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university      KF8NH
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


More information about the Haskell-Cafe mailing list