[Haskell] installing streams library

Bulat Ziganshin bulat.ziganshin at gmail.com
Sat May 20 02:17:15 EDT 2006


Hello Chad,

Friday, May 19, 2006, 10:40:56 PM, you wrote:

> It sounds like Bulat has gotten some impressive I/O speedups with
> his Streams library. I'd like to try this out, but I'm having some
> trouble installing it. I'm using GHC on Linux.

yes, and current (still unpublished) version is even better than previous
one

> My first attempt was looking around on this page:
> http://www.haskell.org/haskellwiki/Library/Streams

> There's a really nice description, but no signs of where to
> actually get the library.

the old hawiki don't allowed to publish links to site narod.ru,
because it's public site used also by spammers. i plan to request
some place on the haskell.org site for my projects to make
possible links publishing

> From here I was able to download it, but there's no information
> regarding how this needs to be set up. There are directories "Data",
> "Examples", and "System", which I assume are supposed to be plugged
> into the hierarchical module structure, but how do I do that? I
> thought this might have something to do with Cabal (I've not yet
> used that), but the Cabal manual talks about a .cabal file, which doesn't exist here.

> Does this follow some standard approach that I'm not familiar with?
> Where should I look to learn more?

you will be laughing but i still not learned how cabal should be used
and just pack all the library modules together. you can either copy
Data & System dirs to the place where your program lies or use "-i"
ghc switch to point compiler where it can find additional modules:

ghc --make -i/Haskell/StreamsLib  YourProgram.hs

in this case, ghc will search, for example, module "Data.Ref" in file
/Haskell/StreamsLib/Data/Ref.hs (after looking to ./Data/Ref.hs)

directory Examples contains examples of using library, you should copy
files from this dir to root library directory in order to compile them



-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell mailing list