
Hi all, The darcs team would like to announce the immediate availability of darcs 2.5 beta 1. Important changes since darcs 2.4.4 are: * trackdown can now do binary search with the --bisect option * darcs always stores patch metadata encoded with UTF-8 * obliterate has a -o flag to save obliterated patch * amend-record now supports --ask-deps * apply now supports --match * amend-record has a new --keep-date option * inventory-changing commands (like record and pull) now operate in constant time with respect to the number of patches in the repository If you have installed the Haskell Platform or cabal-install, you can install this beta release by doing: $ cabal update $ cabal install darcs-beta Alternatively, you can download the tarball from http://darcs.net/releases/darcs-2.4.98.1.tar.gz and build it by hand as explained in the README file. Kind Regards, the darcs release manager, Reinier Lamers

On Sun, Jul 11, 2010 at 5:51 AM, Reinier Lamers
Hi all,
The darcs team would like to announce the immediate availability of darcs 2.5 beta 1. Important changes since darcs 2.4.4 are:
* trackdown can now do binary search with the --bisect option * darcs always stores patch metadata encoded with UTF-8 * obliterate has a -o flag to save obliterated patch * amend-record now supports --ask-deps * apply now supports --match * amend-record has a new --keep-date option * inventory-changing commands (like record and pull) now operate in constant time with respect to the number of patches in the repository
If you have installed the Haskell Platform or cabal-install, you can install this beta release by doing:
$ cabal update $ cabal install darcs-beta
Did you forget to upload the 2.5 beta to hackage? The latest version I see is in the 2.4 series. Thanks, Jason

On Sunday 11 July 2010 18:02:46, Jason Dagit wrote:
Did you forget to upload the 2.5 beta to hackage? The latest version I see is in the 2.4 series.
Thanks, Jason
I think the darcs A.B beta is versioned A.(B-1).98/99.x (so the beta has smaller version than the release), hence 2.4.98.1 should be the 2.5 beta.

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

On Sun, Jul 11, 2010 at 2:05 PM,
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?
GHCi automatically loads the package, you just need to put the modules into scope. This is analogous to using an "import" declaration. For example: 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 Data.ByteString.Char8 Prelude Data.ByteString.Char8> pack "hello" Loading package bytestring-0.9.1.4 ... linking ... done. "hello" Prelude Data.ByteString.Char8> pack "hello" "hello" So, just put the modules you want into scope with :m Module1 Module2 ... or :m Module1 :m +Module2 Module3 :m +Module4 Module5 That should get you started =). Cheers, -- Felipe.

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: ----------- dlb@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 <no location info>: 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

Hello Are you are using HasChorus from this site below? http://meltin.net/hacks/haskell/src/ I think the HasChorus from that site is intended to be used with Paul Hudak's original Haskore rather than Henning Thielemann's extended Haskore (the version on Hackage). You could try installing the package "haskore-vintage" (also on Hackage) which is the original Haskore, and see if you can get it to work with that. Best wishes Stephen

On Sun, Jul 11, 2010 at 3:25 PM,
Prelude Haskore> :l Haskore
<no location info>: module `Haskore' is a package module Failed, modules loaded: none.
You need to use :m here.
--
Dave Menendez

dlb@patriot.net writes:
dlb@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
No error message here? Haskore should now be in scope. Did you try ':i AbsPitch'? If that worked, and you still get the error below, you need to check HasScales's imports.
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.
Did you try :browse Haskore to check that it does, in fact, export AbsPitch?
I can't even load Haskore, because it is a "package module", to wit:
This is expected, you use :m to import those. -k -- If I haven't seen further, it is by standing in the footprints of giants

Hi Ketil Particularly to Haskore rather than package importing or Cabal in general, AbsPitch is not defined in "Haskore" i.e. Henning Thielemann's extended Haskore. AbsPitch in Paul Hudak's Haskore (i.e. "haskore-vintage"), it is a synonym for Int, I believe the replacement is Henning's Haskore is Absolute. From what I can gather, the original poster is using Haskore from Hackage (so they have Henning's version) but is trying to work with an old library HasChorus (installed from a source tar ball that is not on Hackage). HasChorus doesn't have a cabal file to distinguish dependencies, but it is written for Paul Hudak's original Haskore - i.e. "haskore-vintage". The docs on Hackage show that Henning's Haskore doesn't export AbsPitch: http://hackage.haskell.org/packages/archive/haskore/0.1.0.4/doc/html/doc-ind... http://hackage.haskell.org/packages/archive/haskore-vintage/0.1/doc/html/doc... Best wishes Stephen

On Sunday 11 July 2010 19:05:39, dlb@patriot.net wrote:
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.
After "cabal install"ing the packages (or runhaskell Steup.hs configure --user; build; install), they ought to be registered in the user package-db in $HOME/.ghc/your-ghc-version/package.conf.d and ghci should automatically look there. Can you say what exactly you did to install the packages and what ghc-pkg list reports?
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

Hi, Op zondag 11 juli 2010 18:02 schreef Jason Dagit:
On Sun, Jul 11, 2010 at 5:51 AM, Reinier Lamers
wrote: If you have installed the Haskell Platform or cabal-install, you can install this beta release by doing:
$ cabal update $ cabal install darcs-beta
Did you forget to upload the 2.5 beta to hackage? The latest version I see is in the 2.4 series.
I'm sorry. I intended to include a note explaining the relation between numerical (2.4.98.1) and "beta"/"rc"(2.5 beta 1) version names, but forgot to do so. This should be fixed for beta 2 :) Reinier
participants (8)
-
Daniel Fischer
-
David Menendez
-
dlb@patriot.net
-
Felipe Lessa
-
Jason Dagit
-
Ketil Malde
-
Reinier Lamers
-
Stephen Tetley