-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 7/18/10 14:18 , Anthony Cowley wrote: > On Sun, Jul 18, 2010 at 1:55 PM, Carter Schonwald > <carter.schonw...@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] allb...@kf8nh.com system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxDXB0ACgkQIn7hlCsL25WqagCg1Z9yJunJObDQWj27awIjZgNF 420AoNFoW3O75O1VOOP7lzXOVW7iMtjZ =jaTS -----END PGP SIGNATURE----- _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe