[Haskell-cafe] ANN: GlomeTrace raytracing library

2010-01-23 Thread Jim Snow
I have uploaded to hackage a new version of my ray-tracer, Glome. In previous releases, Glome was a monolithic application. In this release, the core algorithms have been abstracted out into a pair of libraries, GlomeVec and GlomeTrace. GlomeVec is a vector library. It's not necessarily any

Re: [Haskell-cafe] PROPOSAL: Web application interface

2010-01-23 Thread Michael Snoyman
On Sun, Jan 24, 2010 at 2:38 AM, Nicolas Pouillard < nicolas.pouill...@gmail.com> wrote: > On Sat, 23 Jan 2010 21:31:47 +0200, Michael Snoyman > wrote: > > Just as an update, I've made the following changes to my WAI git repo ( > > http://github.com/snoyberg/wai): > > > > * I removed the RequestB

Re: [Haskell-cafe] Spelling checker exercise

2010-01-23 Thread Matthew Phillips
Thanks very much Daniel for giving my (amateurish!) exercise such an in-depth a look-over. Comments inline below. On 23/01/2010, at 12:11 AM, Daniel Fischer wrote: > Am Freitag 22 Januar 2010 07:51:27 schrieb Matthew Phillips: >> Hello all, >> >> sorry to bring up an old chestnut, but I’m tryin

[Haskell-cafe] Installing "encoding" package from Hackage

2010-01-23 Thread Chris Wagner
Hi all, I'm trying to install the "encoding" package using cabal, but I'm getting an error about a missing "HaXml" module... - ch...@desktop:~$ cabal install encoding Resolving dependencies... /tmp/encoding-0.6.26119/encoding-0.

Re: [Haskell-cafe] Re: could we get a Data instance for Data.Text.Text?

2010-01-23 Thread Lennart Augustsson
> The only safe rule is: if you don't control the class, C, or you don't > control the type constructor, T, don't make instance C T. I agree in principle, but in the real world you can't live by this rule. Example, I want to use Uniplate to traverse the tree built by haskell-src-exts, Using Data.D

Re: [Haskell-cafe] PROPOSAL: Web application interface

2010-01-23 Thread Nicolas Pouillard
On Sat, 23 Jan 2010 21:31:47 +0200, Michael Snoyman wrote: > Just as an update, I've made the following changes to my WAI git repo ( > http://github.com/snoyberg/wai): > > * I removed the RequestBody(Class) bits, and replaced them with "IO (Maybe > ByteString)". This is a good example of tradeoff

Re: [Haskell-cafe] Web application interface

2010-01-23 Thread Jeremy Shaw
On Jan 23, 2010, at 10:52 AM, Michael Snoyman wrote: Jeremy, What I meant is, if you use a sendfile system call to send raw files from the disk, how does this interact with gzip compression, which clearly cannot be used when using a sendfile call? I ask because you implied there were sign

Re: [Haskell-cafe] Re: could we get a Data instance for Data.Text.Text?

2010-01-23 Thread Derek Elkins
On Sat, Jan 23, 2010 at 4:57 PM, Jeremy Shaw wrote: >  On Sat, Jan 23, 2010 at 7:57 AM, Neil Mitchell > wrote: > >> >> No, that's definitely not correct, or even remotely scalable as we >> increase the number of abstract types in disparate packages. > > Yes.. happstack is facing another aspect of

Re: [Haskell-cafe] Failing to install hxt

2010-01-23 Thread Daniel Fischer
Am Sonntag 24 Januar 2010 00:38:44 schrieb hask...@kudling.de: > Don Stewart hat am 24. Januar 2010 um 00:10 geschrieben: > > haskell: > > > > Looks like the author of hxt has decided to support 6.12 only, at > > > > the moment. > > > > > > > >     base (>=4.2 && <5) > > > > > > > > Ensures this

Re: [Haskell-cafe] Failing to install hxt

2010-01-23 Thread Don Stewart
haskell: > > That looks like an error relating to the versoin of tagsoup used? > > You're right, thanks. > "optLookupEntity" is defined in tagsoup-0.6, but not in tagsoup-0.8. > But hxt-8.3.2 broadly requires tagsoup (>=0.6 && <1). > > I am no cabal expert. What is the best solution here? I thin

Re: [Haskell-cafe] Web application interface

2010-01-23 Thread Nicolas Pouillard
On Sat, 23 Jan 2010 18:52:01 +0200, Michael Snoyman wrote: > Jeremy, > > What I meant is, if you use a sendfile system call to send raw files from > the disk, how does this interact with gzip compression, which clearly cannot > be used when using a sendfile call? I ask because you implied there w

Re: [Haskell-cafe] Failing to install hxt

2010-01-23 Thread hask...@kudling.de
Don Stewart hat am 24. Januar 2010 um 00:10 geschrieben: > haskell: > > > Looks like the author of hxt has decided to support 6.12 only, at the > > > moment. > > > > > >     base (>=4.2 && <5) > > > > > > Ensures this will only work on the 6.12 series of compilers. > > > > Thanks. I know. > >

Re: [Haskell-cafe] Re: could we get a Data instance for Data.Text.Text?

2010-01-23 Thread Nicolas Pouillard
On Sat, 23 Jan 2010 16:57:49 -0600, Jeremy Shaw wrote: > On Sat, Jan 23, 2010 at 7:57 AM, Neil Mitchell wrote: > > > > No, that's definitely not correct, or even remotely scalable as we > > increase the number of abstract types in disparate packages. > > > Yes.. happstack is facing another as

Re: [Haskell-cafe] Failing to install hxt

2010-01-23 Thread Don Stewart
haskell: > > Looks like the author of hxt has decided to support 6.12 only, at the > > moment. > > > > base (>=4.2 && <5) > > > > Ensures this will only work on the 6.12 series of compilers. > > Thanks. I know. > > My point is, i don't understand why hxt-8.3.2 (base >= 4 && <5) fails to > ins

Re: [Haskell-cafe] Failing to install hxt

2010-01-23 Thread hask...@kudling.de
> Looks like the author of hxt has decided to support 6.12 only, at the > moment. > >     base (>=4.2 && <5) > > Ensures this will only work on the 6.12 series of compilers. Thanks. I know. My point is, i don't understand why hxt-8.3.2 (base >= 4 && <5) fails to install for me with: " src/

Re: [Haskell-cafe] Failing to install hxt

2010-01-23 Thread Don Stewart
haskell: > Hi guys, > > i have some troubles to install hxt. > > My first naive attempt "cabal install hxt" fails with > "cabal: cannot configure hxt-8.5.0. It requires base >=4.2 && <5". > > I guess that's because i use ghc 6.10.4, since > "base-4.2.0.0" depends on "integer-simple" which seems

[Haskell-cafe] Failing to install hxt

2010-01-23 Thread hask...@kudling.de
Hi guys, i have some troubles to install hxt. My first naive attempt "cabal install hxt" fails with "cabal: cannot configure hxt-8.5.0. It requires base >=4.2 && <5". I guess that's because i use ghc 6.10.4, since "base-4.2.0.0" depends on "integer-simple" which seems to only come with ghc 6

Re: [Haskell-cafe] Re: could we get a Data instance for Data.Text.Text?

2010-01-23 Thread Jeremy Shaw
On Sat, Jan 23, 2010 at 7:57 AM, Neil Mitchell wrote: > No, that's definitely not correct, or even remotely scalable as we > increase the number of abstract types in disparate packages. Yes.. happstack is facing another aspect of this scalability issue as well. We have a class, Serialize, whic

Re: [Haskell-cafe] PROPOSAL: Web application interface

2010-01-23 Thread Michael Snoyman
Just as an update, I've made the following changes to my WAI git repo ( http://github.com/snoyberg/wai): * I removed the RequestBody(Class) bits, and replaced them with "IO (Maybe ByteString)". This is a good example of tradeoffs versus the enumerator approach (see below). * This might just be bik

[Haskell-cafe] where is the eros distribution

2010-01-23 Thread Thomas Hartman
I was inspired by the google tech talk and would like to install and play with eros, but the http://darcs.haskell.org/packages/Eros/dist/ address pointed to at http://www.haskell.org/haskellwiki/Eros appears to be obsolete. ___ Haskell-Cafe mailing li

Re: [Haskell-cafe] Is Haskell capable of matching C in string processing performance?

2010-01-23 Thread John Millikin
I'm using UCS-4, with uint32_t. On Sat, Jan 23, 2010 at 03:43, Taru Karttunen wrote: > Excerpts from John Millikin's message of Fri Jan 22 19:40:58 +0200 2010: >> Correct me if I'm wrong, but ByteStrings can't contain non-ASCII >> values, right? I'm looking for something like this pseudo-C: >> >>

Re: [Haskell-cafe] Web application interface

2010-01-23 Thread Michael Snoyman
Jeremy, What I meant is, if you use a sendfile system call to send raw files from the disk, how does this interact with gzip compression, which clearly cannot be used when using a sendfile call? I ask because you implied there were significant performance gains from using sendfile. Michael On Fr

Re: [Haskell-cafe] hsql won't install due to system.time

2010-01-23 Thread Jörg Roman Rudnick
Hi Marc, I've just finished hsql with up-to-date exception handling, which I will call hsql-1.8.1, as catchSql & handleSql can be regarded as deprecated now -- only having some final testing lest. Excuse me for the delay. Let me know if you want to be a beta tester... ;-) Cheers, Nick

[Haskell-cafe] ghci debugger, can't set breakpoint

2010-01-23 Thread Mike Burrell
I recently upgraded from GHC 6.8.2 to GHC 6.10.4 and can no longer set breakpoints the way I'm used to. It seems I can only set breakpoints in the current module. I Googled around and found someone with a similar error message trying to load modules which aren't interpreted, but that's not

[Haskell-cafe] ANN: ForSyDe DSL v3.1

2010-01-23 Thread Seyed Hosein Attarzadeh Niaki
Dear All, A new version of the ForSyDe DSL is uploaded to the Hackage database. "The ForSyDe (Formal System Design) methodology has been developed with the objective to move system design to a higher level of abstraction and to bridge the abstraction gap by transformational design refinement. T

[Haskell-cafe] ANN: parameterized-data library v0.1.4

2010-01-23 Thread Seyed Hosein Attarzadeh Niaki
Dear Haskell developers, A new version of the parameterized-data library providing fixed-sized vectors (based on the type-level library) is pushed into the repository and uploaded to the Hackage database. This is only a minor update to fix the compatibility issues with base 4, GHC>=6.10 and cab

[Haskell-cafe] Type level splices and instance deriving

2010-01-23 Thread Khudyakov Alexey
Hello GHC 6.12 introduced type level splices. They are great for instances generation. They allow for much clearer and easier to understand code. However I run into problem with them. It's possible to create instance for type class which doesn't have superclass. If it does have one compiler co

[Haskell-cafe] Re: ANNOUNCE: Updates and a new member of the Monadic Regions family

2010-01-23 Thread Bas van Dijk
On Sat, Jan 23, 2010 at 4:02 PM, Bas van Dijk wrote: > Note that the darcs repositories for all packages are not updated > because I can't seem to get a SSH connection with code.haskell.org :-( I just managed to update the darcs repositories, so you can now browse the sources on line. Bas __

[Haskell-cafe] ANNOUNCE: Updates and a new member of the Monadic Regions family

2010-01-23 Thread Bas van Dijk
Hello, I released updates of all the members of the Monadic Regions family: * http://hackage.haskell.org/package/regions-0.3 - Export the 'Dup' and 'ParentOf' classes from 'Control.Monad.Trans.Region'. - Add: 'mapInternalHandle ∷ (Handle resource1 → Handle resource2) → (RegionalHandle resource

Re: [Haskell-cafe] could we get a Data instance for Data.Text.Text?

2010-01-23 Thread Neil Brown
Jeremy Shaw wrote: Hello, Would it be possible to get a Data instance for Data.Text.Text? This would allow us to create a Serialize instance of Text for use with happstack -- which would be extremely useful. Last time this came up, I had a look at providing a Data instance for Text, and I "go

Re: [Haskell-cafe] Re: could we get a Data instance for Data.Text.Text?

2010-01-23 Thread Neil Mitchell
>> Would it be possible to get a Data instance for Data.Text.Text? > > From the last time this came up, I gather that the correctish thing to do > (for reasons too obscure to me) is to teach SYB and its many cousins about > Text, or else there'll be some sort of disturbance in the Force. No, that'

Re: [Haskell-cafe] Is Haskell capable of matching C in string processing performance?

2010-01-23 Thread Taru Karttunen
Excerpts from John Millikin's message of Fri Jan 22 19:40:58 +0200 2010: > Correct me if I'm wrong, but ByteStrings can't contain non-ASCII > values, right? I'm looking for something like this pseudo-C: > > typedef void (*Callback)(const uint32_t *chars, size_t n_chars, void *); > WriterSt

Re: [Haskell-cafe] Is Haskell capable of matching C in string processing performance?

2010-01-23 Thread Eugene Kirpichov
Ironically, there's a TODO comment about that in the source of Data.ByteString.Lazy, just below 'copy': http://hackage.haskell.org/packages/archive/bytestring/0.9.0.4/doc/html/src/Data-ByteString-Lazy.html#copy -- TODO defrag func that concatenates block together that are below a threshold -- def