Installing libraries (specifically haskore)
Howdy, I have hugs98 installed and working (on Mac OSX), and I'm now trying to 'install' haskore (this is my motivation for trying haskell) http://www.haskell.org/haskore . I have downloaded haskore but am not sure how to install it. The readme file for haskore says The best way to use the system with Hugs is to drop the entire Haskore directory into Hugs/lib (replacing the one that's there). All of the files except this README file are in the directory Src. I have no such directory, Hugs/lib. The readme files is seven years old so it is apparently talking about how things were done in 2000. The most likelly candidate (as the equivalent to Hugs/lib) I find is /opt/local/lib/hugs , or perhaps one of its subdirectories (oldlib, programs, and packages all seem like plausible choices). Can anyone tell me where I should put the Haskore directory? Further, I don't see any previous version of haskore (if I did, I guess that would answer that question). I presume it is no longer distributed with hugs98. Am I right, or should I expect to find it somewhere on my hard drive as part of the hugs98 distribution? I have another question about haskore, but it is probably not appropriate for this list so please ignore it unless you are curious. The haskore readme also says 1) "Haskore.lhs" will load the entire basic Haskore system. If your Hugs has the proper paths set up, once you drop this directory into Hugs/lib, you should be able to just say "import Haskore" and everything should work correctly. I find no file nor directory named "Haskore.lhs" in the distribution. I find a ""Haskore.hs"; is the paragraph above just a typo? Thanks for any help, Bob H P.S. Thanks for the help this morning.
On Wed, Feb 21, 2007 at 07:46:17PM -0500, Bob Harris wrote:
I have hugs98 installed and working (on Mac OSX), and I'm now trying to 'install' haskore (this is my motivation for trying haskell) http://www.haskell.org/haskore . I have downloaded haskore but am not sure how to install it. The readme file for haskore says
The best way to use the system with Hugs is to drop the entire Haskore directory into Hugs/lib (replacing the one that's there). All of the files except this README file are in the directory Src.
I have no such directory, Hugs/lib. The readme files is seven years old so it is apparently talking about how things were done in 2000. The most likelly candidate (as the equivalent to Hugs/lib) I find is /opt/local/lib/hugs , or perhaps one of its subdirectories (oldlib, programs, and packages all seem like plausible choices). Can anyone tell me where I should put the Haskore directory?
The modern equivalent is be to copy the Src directory to /opt/local/lib/hugs/packages/Haskore. Unfortunately Haskore also uses some obsolete stuff: replace fromInt with fromIntegral, and see http://www.mail-archive.com/haskell-cafe@haskell.org/msg16664.html for replacements for IOExtensions. You'll also need import Control.Concurrent (bracket) for the first one.
Ross wrote:
The modern equivalent is be to copy the Src directory to /opt/local/lib/hugs/packages/Haskore. Unfortunately Haskore also uses some obsolete stuff: replace fromInt with fromIntegral, and see
http://www.mail-archive.com/haskell-cafe@haskell.org/msg16664.html
for replacements for IOExtensions. You'll also need
import Control.Concurrent (bracket)
for the first one.
Thanks! I'll give it a shot. Bob H
Howdy, Ross wrote:
... Unfortunately Haskore also uses some obsolete stuff: replace fromInt with fromIntegral, ...
I don't find fromInt in the haskore source. I find fromInteger. Should I change fromInteger to fromIntegral? Or is fromIntegral a typo and haskore has already been updated?
and see http://www.mail-archive.com/haskell-cafe@haskell.org/msg16664.html for replacements for IOExtensions. You'll also need
import Control.Concurrent (bracket)
for the first one.
My download of haskore came with the IOExtensions module shown in an earlier message in that thread, in a separate directory (intended for ghc users). I copied it into Haskore/Src. It imports IOExts which is not found. So I then made the changes indicated in msg16664 (plus removed the offending import). In this case I got the error 'Undefined variable "bracket"', so I added the import you note above, and now Iget the error 'Unknown entity "bracket" imported from module "Control.Concurrent"'. Any suggestions? Bob H
On Thu, Feb 22, 2007 at 08:56:41AM -0500, Bob Harris wrote:
I don't find fromInt in the haskore source. I find fromInteger. Should I change fromInteger to fromIntegral? Or is fromIntegral a typo and haskore has already been updated?
That should be OK.
My download of haskore came with the IOExtensions module shown in an earlier message in that thread, in a separate directory (intended for ghc users). I copied it into Haskore/Src. It imports IOExts which is not found. So I then made the changes indicated in msg16664 (plus removed the offending import). In this case I got the error 'Undefined variable "bracket"', so I added the import you note above, and now Iget the error 'Unknown entity "bracket" imported from module "Control.Concurrent"'.
Sorry: should have been Control.Exception.
participants (2)
-
Bob Harris -
Ross Paterson