[Haskell-cafe] Re: ByteString search code available in easy-to-digest form

2007-11-09 Thread ChrisK
Yeah, my code wants to open up the internals of Lazy bytestrings.  Until
recently this was possible toChunks, but it would be best to rewrite it for the
newest Lazy representation (which comes with new shiny ghc 6.8.1).

It is a trivial change, but I due to ghc-6.8.1 failing on ppc G4 OS X, I won't
be updating it myself at the moment.

-- 
Chris


Niko Korhonen wrote:
 Bryan O'Sullivan wrote:
 Patches against the darcs repo welcome:

   darcs get http://darcs.serpentine.com/stringsearch

 Credit to Justin Bailey, Daniel Fischer, and Chris Kuklewicz for their
 hard work.

 (Currently only tested against GHC 6.6.1, FYI.)
 
 Does not compile with GHC 6.8.1:
 
 runhaskell Setup.lhs build
 Preprocessing library stringsearch-0.1.1...
 Building stringsearch-0.1.1...
 
 Data/ByteString/Search/BoyerMoore.hs:59:7:
 Could not find module `Data.Array.Unboxed':
   it is a member of package array-0.1.0.0, which is hidden

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: ByteString search code available in easy-to-digest form

2007-11-09 Thread Bryan O'Sullivan

ChrisK wrote:

Yeah, my code wants to open up the internals of Lazy bytestrings.  Until
recently this was possible toChunks, but it would be best to rewrite it for the
newest Lazy representation (which comes with new shiny ghc 6.8.1).


I've updated the stringsearch package on hackage so that it ought to 
compile against both 6.6.1 and 6.8.1.  The toChunks function hasn't 
changed in any way.


b
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Re: ByteString search code available in easy-to-digest form

2007-11-09 Thread Don Stewart
bos:
 ChrisK wrote:
 Yeah, my code wants to open up the internals of Lazy bytestrings.  Until
 recently this was possible toChunks, but it would be best to rewrite it 
 for the
 newest Lazy representation (which comes with new shiny ghc 6.8.1).
 
 I've updated the stringsearch package on hackage so that it ought to 
 compile against both 6.6.1 and 6.8.1.  The toChunks function hasn't 
 changed in any way.

And is the representation-indepedent api anyway, so should be preferred.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Re: ByteString search code available in easy-to-digest form

2007-11-08 Thread Niko Korhonen
Bryan O'Sullivan wrote:
 Patches against the darcs repo welcome:
 
   darcs get http://darcs.serpentine.com/stringsearch
 
 Credit to Justin Bailey, Daniel Fischer, and Chris Kuklewicz for their
 hard work.
 
 (Currently only tested against GHC 6.6.1, FYI.)

Does not compile with GHC 6.8.1:

runhaskell Setup.lhs build
Preprocessing library stringsearch-0.1.1...
Building stringsearch-0.1.1...

Data/ByteString/Search/BoyerMoore.hs:59:7:
Could not find module `Data.Array.Unboxed':
  it is a member of package array-0.1.0.0, which is hidden

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe