Re: [Haskell-cafe] class default method proposal

2007-12-11 Thread Duncan Coutts
On Tue, 2007-12-11 at 16:38 +, Ross Paterson wrote: > On Tue, Dec 11, 2007 at 04:26:52PM +, Simon Marlow wrote: > > Duncan Coutts wrote: > >> On Tue, 2007-12-11 at 07:07 -0800, Stefan O'Rear wrote: > >>> This is almost exactly the &

Re: [Haskell-cafe] class default method proposal

2007-12-11 Thread Duncan Coutts
On Tue, 2007-12-11 at 07:07 -0800, Stefan O'Rear wrote: > This is almost exactly the > http://haskell.org/haskellwiki/Class_system_extension_proposal; that > page has some discussion of implementation issues. Oh yes, so it is. Did this proposal get discussed on any mailing list? I'd like to see

[Haskell-cafe] class default method proposal

2007-12-11 Thread Duncan Coutts
I'd just like to float an idea that's related to the Class Alias proposal[1] but is perhaps somewhat simpler. We all know that Functor should have been a superclass of Monad, and indeed we now know that Applicative should be too. Making such a change would break lots of things however so the chang

Re: [Haskell-cafe] Problem with Gtk2hs

2007-12-10 Thread Duncan Coutts
On Mon, 2007-12-10 at 10:40 +, Andrew Coppin wrote: > What do I need to compile the darcs version? Just GHC? Or do I need the > GTK+ header files? (Remember, I'm on Windows here.) Ah, that's a bit harder. It's not for the feint of heart. I've not updated the instructions in a while. The ol

Re: [Haskell-cafe] Problem with Gtk2hs

2007-12-09 Thread Duncan Coutts
On Sat, 2007-12-08 at 13:08 -0800, Stefan O'Rear wrote: > On Sat, Dec 08, 2007 at 08:33:36PM +, Andrew Coppin wrote: > > I just spent the evening writing a library that's a thin layer over Gtk2hs. > > It took an age to get it to compile, but eventually it worked. Yay! > > > > When I ran it,

Re: [Haskell-cafe] Literate HTML

2007-12-07 Thread Duncan Coutts
On Fri, 2007-12-07 at 19:14 +, Neil Mitchell wrote: > Hi Brandon, > > > You could replace the "unlit" executable in the GHC library directory > > with one which knows how to extract Haskell code from HTML. > > I want a solution so that I can write the tagsoup manual in an way > that can actu

Re: [Haskell-cafe] regex package for yhc?

2007-12-06 Thread Duncan Coutts
On Thu, 2007-12-06 at 15:21 -0500, Thomas Hartman wrote: > Is there a cabal equivalent for yhc? One day we hope Cabal will support yhc. It currently supports ghc, hugs and has partial support for nhc98 and jhc. The main thing holding it back is dependency chasing in Cabal or the lack thereof. C

Re: [Haskell-cafe] regexen no go with 6.8.1?

2007-12-04 Thread Duncan Coutts
On Tue, 2007-12-04 at 02:02 -0800, Jason Dusek wrote: > Is it just me, or are all the regex implementations broken with > new change in lib layout for 6.8.1? > > Are fixes available in darcs? Use these ones: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/regex-base-0.72.0.1 http://ha

Re: [Haskell-cafe] ANN: Teach Yourself Gtk2Hs in 21 Hours

2007-12-02 Thread Duncan Coutts
On Sun, 2007-12-02 at 09:40 -0200, Felipe Lessa wrote: > Nice work! As a feedback, I think it would be nice to have colored > sintax, at least for the bigger examples. If you want to do this, we can probably do so by adapting the existing tool we have to colouring Haskell code to work over html fi

Re: [Haskell-cafe] Re: Re: cabal-install

2007-11-30 Thread Duncan Coutts
On Thu, 2007-11-29 at 23:56 +0100, Ben Franksen wrote: > Duncan Coutts wrote: > > On Wed, 2007-11-28 at 21:00 +0100, Thomas Schilling wrote: > >> On Wed, 2007-11-28 at 20:46 +0100, Ben Franksen wrote: > > > >> > [EMAIL PROTECTED]: .../software/haskel

Re: [Haskell-cafe] Haskell and DB : giving up

2007-11-29 Thread Duncan Coutts
On Wed, 2007-11-28 at 19:11 +0100, manu wrote: > Hello > > I've spent a few days trying to install all the packages required to > use HaskellDB with either MySQL or SQlite3 > (the only 2 DB the host I was thinking about is supporting) > > Well, I am giving up ! I seriously regret replacing ghc-

Re: [Haskell-cafe] cabal under windows (was Re: Haskell-Cafe Digest, Vol 51, Issue 180)

2007-11-29 Thread Duncan Coutts
On Thu, 2007-11-29 at 13:51 +1100, Tim Docker wrote: > > Well I'd say none of the packages I've tried, build out of the box... > > I'm not a windows developer, but > > Is it actually reasonable to expect any cabal packages that depend on > external c libraries and headers to build out of the

Re: [Haskell-cafe] Re: Haskell packaging on Windows "cygwin" (<< POSIX on Windows ; ^)

2007-11-29 Thread Duncan Coutts
On Thu, 2007-11-29 at 00:21 -0600, Galchin Vasili wrote: > The message I actually receive is: > > runhaskell Setup.lhs build > . > > ./Haq.hs:6:7: > Could not find module `System.Environment': > it is a member of a package base, which is hidden > > BTW I haven't actual

Re: [Haskell-cafe] Re: Strings and utf-8

2007-11-29 Thread Duncan Coutts
On Thu, 2007-11-29 at 13:05 +, Jules Bean wrote: > Language of messages is quite different from language of a file you read. > > Suppose I am English, and I have a russian friend, Vlad. > > My default locale is, say, latin-1, and his is something cyrillic. > > I might well open files includ

Re: [Haskell-cafe] Re: cabal-install

2007-11-29 Thread Duncan Coutts
On Wed, 2007-11-28 at 21:00 +0100, Thomas Schilling wrote: > On Wed, 2007-11-28 at 20:46 +0100, Ben Franksen wrote: > > [EMAIL PROTECTED]: .../software/haskell > cd cabal > > [EMAIL PROTECTED]: .../haskell/cabal > runhaskell Setup.lhs configure > > > > Distribution/Simple/NHC.hs:77:1: lexical err

Re: [Haskell-cafe] Re: Strings and utf-8

2007-11-29 Thread Duncan Coutts
On Wed, 2007-11-28 at 17:38 -0200, Maurí­cio wrote: > >>(...) When it's phrased as "truncates to 8 > >> bits" it sounds so simple, surely all we need > >> to do is not truncate to 8 bits right? > >> > >> The problem is, what encoding should it pick? > >> UTF8, 16, 32, EBDIC? (...) > >> > >>

Re: [Haskell-cafe] Strings and utf-8

2007-11-28 Thread Duncan Coutts
On Tue, 2007-11-27 at 18:38 +, Paul Johnson wrote: > Brandon S. Allbery KF8NH wrote: > > However, the IO system truncates [characters] to 8 bits. > Should this be considered a bug? A design problem. > I presume that its because was defined in the days of > ASCII-only strings, and the functi

Re: [Haskell-cafe] cabal-install

2007-11-28 Thread Duncan Coutts
On Tue, 2007-11-27 at 18:02 -0800, Don Stewart wrote: > ben.franksen: > > Just thought I install the latest version (0.4.0) from hackage and test it. > > Build and install went fine, but then it gets strange: > > > > cabal: dist/Conftest.c: openFile: does not exist (No such file or directory) > >

Re: [Haskell-cafe] nhc vs ghc

2007-11-24 Thread Duncan Coutts
On Fri, 2007-11-23 at 23:33 -0800, brad clawsie wrote: > for example, can i build a cabal package with nhc98? As of yesterday the answer is yes! (probably) :-) I'm glad you asked about building and not installing since the answer to that question would be no. Support in Cabal for building with nh

Re: [Haskell-cafe] Haskell code in Wordpress

2007-11-23 Thread Duncan Coutts
On Fri, 2007-11-23 at 20:22 +, Paulo J. Matos wrote: > Hi all, > > I'm curious about the best way to typeset haskell code in a wordpress > blog. Using blockquote removes all indentation. :-( For the Gtk2Hs website I used a program (partly derived from hscolour) to highlight and adds links to

Re: [Haskell-cafe] c2hs on Windows?

2007-11-23 Thread Duncan Coutts
On Sun, 2007-11-11 at 21:36 +, Alex Young wrote: > Hi all, > > Does anyone know if c2hs should be working on Windows? I'm trying to > build it under ghc 6.8.0, but this happens: I just uploaded c2hs-0.15.1 which builds with all recent versions of ghc 6.4-6.8. I also tested that it builds on

Re: [Haskell-cafe] expanded standard lib

2007-11-21 Thread Duncan Coutts
On Wed, 2007-11-21 at 14:57 +0100, Ketil Malde wrote: > No Google page rank-alike? > > I did a quick popularity count by wget'ting the whole thing, and > looking for hrefs under cgi-bin/packages/archive¹. Not exact, as it > counts links to the previous version, but a rough approximation. Page >

Re: [Haskell-cafe] [Offtopic?] Cabal package license and copyright holder question

2007-11-21 Thread Duncan Coutts
On Wed, 2007-11-21 at 12:58 +0100, Alfonso Acosta wrote: > Hi all, > > I don't know if this is the right place to ask but, since it's somehow > Haskell-related I decided to use haskell-cafe. > > I'm cabalizing a library which, apart from my own code, has code taken > from others. As it could be e

RE: [Haskell-cafe] expanded standard lib

2007-11-21 Thread Duncan Coutts
On Wed, 2007-11-21 at 10:59 +, Simon Peyton-Jones wrote: > Some random thoughts triggered by this thread > > 1. I've been bowled over by the creativity unleashed by having a > central site (Hackage), with a consistent installation story (Cabal), > where you can upload packages with no central

Re: [Haskell-cafe] Fun with Cabal on Windows! [Stream fusion for Hackage]

2007-11-21 Thread Duncan Coutts
On Tue, 2007-11-20 at 10:35 -0500, Olivier Boudry wrote: > On 11/19/07, Andrew Coppin <[EMAIL PROTECTED]> wrote: > Well, I just tried to install this, and as per usual, Cabal > has having > none of it. > > C:\fusion\> runhaskell Setup configure > Con

Re: [Haskell-cafe] gtk2hs problem

2007-11-20 Thread Duncan Coutts
On Tue, 2007-11-20 at 15:18 -0800, Gregory Propf wrote: > I'm using the Gtk.timeoutAddFull function to do the animation. Are you using the threaded rts? Are you linking the program with -threaded? Are you doing the drawing directly in the timeout function or just invalidating the window/widget an

[Haskell-cafe] Re: [Haskell] recursive deriving

2007-11-20 Thread Duncan Coutts
On Tue, 2007-11-20 at 19:18 -0500, Alex Jacobson wrote: > When you want automated deriving of show/read etc., you need all the > components of your type also to be instances of show/read but you won't > want to *require* them to be automatically generated verions. > > Standalone deriving does th

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Duncan Coutts
On Mon, 2007-11-19 at 10:25 -0800, brad clawsie wrote: > i would categorize myself as a purely practical programmer. i enjoy > using haskell for various practical tasks and it has served me > reliably. one issue i have with the library support for practical > problem domains is the half-finished st

Re: Re[2]: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Duncan Coutts
On Tue, 2007-11-20 at 13:45 +0300, Bulat Ziganshin wrote: > Hello Brandon, > > Tuesday, November 20, 2007, 1:15:34 AM, you wrote: > > >>> The ability to "vote" on packages might be interesting here. If > >>> there's 4 HTML libraries and one of them gets lots of votes, it's > >>> probably the one

Re: [Haskell-cafe] expanded standard lib

2007-11-20 Thread Duncan Coutts
On Mon, 2007-11-19 at 21:49 -0800, Bryan O'Sullivan wrote: > Neil Mitchell wrote: > > >> - The packages seem to be of quite variable quality. Some are excellent, > >> some are rather poor (or just not maintained any more). > > > > The problem is that only one person gets to comment on the quality

Re: [Haskell-cafe] Translations and Haskell

2007-11-20 Thread Duncan Coutts
On Mon, 2007-11-19 at 23:18 -0200, Felipe Lessa wrote: > Hello, > > I'd like to start a project using Gtk2Hs and one thing is concerning > me: what's the current approach on writing portable and translatable > GUI programs in Haskell? For the simple case of translating strings in a .glade UI, gla

Re: [Haskell-cafe] RFC: demanding lazy instances of Data.Binary

2007-11-20 Thread Duncan Coutts
On Mon, 2007-11-19 at 20:06 -0600, Nicolas Frisby wrote: > In light of this discussion, I think the "fully spine-strict list > instance does more good than bad" argument is starting to sound like a > premature optimization. Consequently, using a newtype to treat the > necessarily lazy instances as

Re: [Haskell-cafe] RFC: demanding lazy instances of Data.Binary

2007-11-20 Thread Duncan Coutts
On Mon, 2007-11-19 at 20:22 -0600, Nicolas Frisby wrote: > On Nov 19, 2007 4:16 PM, Duncan Coutts <[EMAIL PROTECTED]> wrote: > > > > On Mon, 2007-11-19 at 13:39 -0800, Don Stewart wrote: > > > nicolas.frisby: > > *snip* > > > > > > >

Re: [Haskell-cafe] RFC: demanding lazy instances of Data.Binary

2007-11-19 Thread Duncan Coutts
On Mon, 2007-11-19 at 13:39 -0800, Don Stewart wrote: > nicolas.frisby: > >I've got a first draft with the newtype and just an instance for list. > > > >If you'd prefer fewer questions, please let me know ;) > > > >0) I've cabalised it ("lazy-binary"), but I don't have anywhere to hos

Re: [Haskell-cafe] dropSpace not exported in ByteString

2007-11-16 Thread Duncan Coutts
On Thu, 2007-11-15 at 21:55 -0500, Olivier Boudry wrote: > By the way, what's the reason dropSpaceEnd is defined but not exported > nor used through a rule? I'm just curious. We decided when trying to standardise the API to start with just the equivalents of the Data.List functions. We have track

Re: [Haskell-cafe] Haskellforge?

2007-11-15 Thread Duncan Coutts
On Thu, 2007-11-15 at 15:56 -0200, Maurí­cio wrote: > Hi, > > Is there a "Haskellforge" somewhere, i.e., > something like a sourceforge for open source > Haskell programs, with darcs, automatic > cabalization etc.? Has anyone tried that > already? There is the Haskell Community server http://comm

Re: [Haskell-cafe] cabal Main-Is restriction

2007-11-15 Thread Duncan Coutts
On Thu, 2007-11-15 at 11:14 -0600, Nicolas Frisby wrote: > It seems the meaning of the -main-is switch for GHC and the Main-Is > build option for Cabal executables differ. With GHC, I can point to > any function "main" in any module, but in Cabal I must point to a > filename with precisely the modu

Re: [Haskell-cafe] cabal problem?

2007-11-14 Thread Duncan Coutts
On Wed, 2007-11-14 at 16:16 +, Jens Blanck wrote: > > sudo runghc Setup.hs install > root's password: > Setup.hs : Warning: Unknown field 'build-type' > Setup.hs: error reading ./.setup-config; run "setup configure" > command? I suspect your path is different for your root user, so it's picki

Re: [Haskell-cafe] Re: How to do this in Haskell

2007-11-12 Thread Duncan Coutts
On Mon, 2007-11-12 at 16:16 -0500, Joe Buehler wrote: > Chris Smith wrote: > > > Right, which is why I'm trying to avoid reinventing it. Writing a new > > HTML editor is not even a consideration. I'm looking at the effort to > > integrate the Mozilla editor component, and wondering if there ar

Re: [Haskell-cafe] Somewhat random history question - chicken and egg

2007-11-11 Thread Duncan Coutts
On Sun, 2007-11-11 at 07:43 -0500, Brent Yorgey wrote: > > GHC can be compiled with GHC 5.0 (or something around there). > If they add a new feature, they don't use it in GHC for years > and years. > > *Can* be compiled with GHC 5.0, or *is* compiled? Can. The ve

Re: [Haskell-cafe] How to do this in Haskell

2007-11-11 Thread Duncan Coutts
On Sat, 2007-11-10 at 23:44 -0700, Chris Smith wrote: > If you wanted to write a Haskell application that included a WYSIWYG > HTML editor, how would you do it? > > More details: > > - I'll probably be using Gtk2Hs for the app, though that could change > with a (very) good reason. I would look

Re: [Haskell-cafe] Building Haskell stuff on Windows

2007-11-08 Thread Duncan Coutts
On Thu, 2007-11-08 at 22:04 +, Andrew Coppin wrote: > >> Is that why Cabal packages never ever install on Windows? > > > > Could you be more specific what your problems are? > > Not to the point that anybody is likely to be able to help me... > > According to the instructions, if I'm underst

Re: [Haskell-cafe] Building Haskell stuff on Windows

2007-11-08 Thread Duncan Coutts
On Thu, 2007-11-08 at 08:56 +0100, Arthur van Leeuwen wrote: > Well, honestly, that was a bit of a fib: the tarball's configure did > in fact not break on alex and haskell. Just the development version > did. Ah yes. > Well, I didn't have any Unix available at that point, so I kinda had to, >

Re: [Haskell-cafe] Haskell performance question

2007-11-08 Thread Duncan Coutts
On Thu, 2007-11-08 at 13:00 -0800, Dan Piponi wrote: > It looks like my whole question might become moot with ghc 6.8.1, but > so far I've been unable to build it due to the cyclic happy > dependency. You really do not need happy to build ghc. Just ignore the extralibs tarball. You can install a

Re: [Haskell-cafe] Building Haskell stuff on Windows

2007-11-07 Thread Duncan Coutts
On Wed, 2007-11-07 at 23:20 +0100, Arthur van Leeuwen wrote: > With kind regards, Arthur. (Who will surely do more Windows development > with Haskell soonish) Good! We need more developers to help us with windows stuff. We're in this difficult situation where half of our users use Windows (

Re: [Haskell-cafe] Building Haskell stuff on Windows

2007-11-07 Thread Duncan Coutts
On Wed, 2007-11-07 at 17:34 +0100, Arthur van Leeuwen wrote: > Hello all, > > maybe I'm just not used enough to Windows, but let me explain my woes of > today. It seems to me to be *much* too hard to get a full install of > GHC + GTK2Hs > going on Windows, going from the idea that I want the cur

Re: [Haskell-cafe] package maintainers: updating your packages to work with GHC 6.8.1

2007-11-05 Thread Duncan Coutts
On Mon, 2007-11-05 at 12:47 +0100, Henning Thielemann wrote: > When Cabal development started I suggested to use Haskell code as > configuration file, because there will be much extensions and the package > description will not fit into a simple syntax soon. So of course there is a trade-off to b

Re: [Haskell-cafe] package maintainers: updating your packages to work with GHC 6.8.1

2007-11-05 Thread Duncan Coutts
On Mon, 2007-11-05 at 07:55 -0800, brad clawsie wrote: > On Mon, Nov 05, 2007 at 11:35:11AM +0000, Duncan Coutts wrote: > > By the way, if you have several common deps it's perfectly ok to factor > > them out like this: > > > > Flag splitBase > > Descrip

Re: [Haskell-cafe] package maintainers: updating your packages to work with GHC 6.8.1

2007-11-05 Thread Duncan Coutts
On Mon, 2007-11-05 at 03:12 +, Duncan Coutts wrote: > If you maintain a Haskell package this is for you. > flag splitBase > description: Choose the new smaller, split-up base package. > library > if flag(splitBase) > build-depends: base >= 3, containers >

[Haskell-cafe] package maintainers: updating your packages to work with GHC 6.8.1

2007-11-04 Thread Duncan Coutts
If you maintain a Haskell package this is for you. So now that GHC 6.8.1 is out you'll want to test your package with it. We'd especially like maintainers of packages that are distributed on hackage.haskell.org to test their packages and update them as necessary. However we would appreciate it if

Re: [Haskell-cafe] The question of ByteString

2007-11-02 Thread Duncan Coutts
On Fri, 2007-11-02 at 21:35 +, Andrew Coppin wrote: > Well OK, maybe I was a little vague. Let me be a bit more specific... > > If you do text processing using ByteString rather than String, you get > dramatically better performance in time and space. For me, this raises a > number of quest

Re: [Haskell-cafe] Problem with PDF/PS backend in GTK2HS

2007-10-28 Thread Duncan Coutts
On Sun, 2007-10-28 at 15:07 +0100, Peter Verswyvelen wrote: > I have a strange problem, which is so elementary that I think I must > be missing something... > > In GTK2HS, when I draw text using using textPath, the text is located > at different locations depending on which backend is used. I'm no

Re: [Haskell-cafe] Linking problems with a fresh gtk2hs build

2007-10-26 Thread Duncan Coutts
On Fri, 2007-10-26 at 09:17 -0400, Olivier Boudry wrote: > Hello, > > I just built gtk2hs 0.9.12 using MinGW, GTK_2.0 and > ghc-6.8.0.20071016. I just changed some EXTERNALDEPS in the Makefile > based on info found in the following page > http://haskell.org/haskellwiki/Grapefruit I'm not sure wha

Re: [Haskell-cafe] ANNOUNCE: zlib and bzlib 0.4 releases

2007-10-23 Thread Duncan Coutts
On Tue, 2007-10-23 at 16:34 +0200, Yitzchak Gale wrote: > Duncan Coutts wrote: > > I'm very happy to get feedback on the API, the documentation or of > > course any bug reports. > > It would be nice if the API could be the same for all > character and data codecs

[Haskell-cafe] ANNOUNCE: zlib and bzlib 0.4 releases

2007-10-23 Thread Duncan Coutts
I'm pleased to announce updates to the zlib and bzlib packages. The releases are on hackage: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib http://hackage.haskell.org/cgi-bin/hackage-scripts/package/bzlib What's new in these releases is that the packages work with a wider range

Re: [Haskell-cafe] Re: How much of Haskell was possible 20 years ago?

2007-10-22 Thread Duncan Coutts
On Mon, 2007-10-22 at 10:05 -0700, Jeremy Shaw wrote: > > >> I like Haskell, and use it as my main > > >> language. However, compiling a Haskell program > > >> usually takes a lot of memory and CPU. > > Last night I was running top, and noticed cc1 consuming 101MB of RAM > :) I have also seen ar

[Haskell-cafe] Re: [Haskell] Re: Trying to install binary-0.4

2007-10-22 Thread Duncan Coutts
On Sun, 2007-10-21 at 23:42 +0200, Udo Stenzel wrote: > Duncan Coutts wrote: > > You can hack the .cabal file further to make it work in your situation, > > but I don't suggest that's a great long term solution. If you wanted to > > hack it you'd change it t

Re: [Haskell-cafe] Automatic file closing after readFile

2007-10-21 Thread Duncan Coutts
On Sun, 2007-10-21 at 17:15 -0400, Albert Y. C. Lai wrote: > Magnus Therning wrote: > > I'll certainly try to look into all of that. However, I suspect your > > suggestion doesn't scale very well. On my original code it's easy, it > > was less than 10 lines, but how do I know where to start looki

[Haskell-cafe] Re: [Haskell] Re: Trying to install binary-0.4

2007-10-21 Thread Duncan Coutts
(moving to haskell-cafe) On Sun, 2007-10-21 at 14:55 +0200, Udo Stenzel wrote: > Duncan Coutts wrote: > > New tarball releases of Cabal-1.2.1, bytestring-0.9, binary-0.4.1, tar > > and others (zlib, bzlib, iconv) will appear on hackage in the next few > > days. > &g

Re: [Haskell-cafe] Why doesn't Hackage link to Haddock documentation anymore?

2007-10-20 Thread Duncan Coutts
On Fri, 2007-10-19 at 09:41 -0700, Conal Elliott wrote: > Will hackage docs use haddock 2.0 any time soon, for libraries that > use language extensions not supported by the older haddock? David Waern told me today that he's working on a new patch to integrate haddock-2.0 support into Cabal. So whe

[Haskell-cafe] RE: [Haskell] Re: Trying to install binary-0.4

2007-10-16 Thread Duncan Coutts
On Tue, 2007-10-16 at 14:01 +0100, Bayley, Alistair wrote: > > From: Simon Marlow [mailto:[EMAIL PROTECTED] > > > > The lexicographical ordering would make 10.0 > 9.3. In > > general, A.B > C.D > > iff A > C or A == C && B > D. When we say the "latest" > > version we mean > > "greatest", im

Re: [Haskell-cafe] ANNOUNCE: binary 0.4: high performance, pure binary parsing and serialisation

2007-10-09 Thread Duncan Coutts
In message <[EMAIL PROTECTED]> Don Stewart <[EMAIL PROTECTED]> writes: > ketil: > > Don Stewart <[EMAIL PROTECTED]> writes: > > > > > The main thing is porting to ghc 6.8 -- which means the new (*faster*) > > > lazy bytestring representation, and the smp parallel quickcheck driver > > > for the te

Re: [Haskell-cafe] Re: PROPOSAL: New efficient Unicode string library.

2007-09-27 Thread Duncan Coutts
In message <[EMAIL PROTECTED]> Tony Finch <[EMAIL PROTECTED]> writes: > On Thu, 27 Sep 2007, Ross Paterson wrote: > > > > Combining characters are not an issue here, just the surrogate pairs, > > because we're discussing representations of sequences of Chars (Unicode > > code points). > > I dislik

Re: [Haskell-cafe] Re: PROPOSAL: New efficient Unicode string library.

2007-09-27 Thread Duncan Coutts
In message <[EMAIL PROTECTED]> [EMAIL PROTECTED] writes: > On 2007-09-27, Deborah Goldsmith <[EMAIL PROTECTED]> wrote: > > On Sep 26, 2007, at 11:06 AM, Aaron Denney wrote: > >>> UTF-16 has no advantage over UTF-8 in this respect, because of > >>> surrogate > >>> pairs and combining characters. >

Re: [Haskell-cafe] PROPOSAL: New efficient Unicode string library.

2007-09-26 Thread Duncan Coutts
In message <[EMAIL PROTECTED]> Jonathan Cast <[EMAIL PROTECTED]> writes: > On Wed, 2007-09-26 at 09:05 +0200, Johan Tibell wrote: > > If UTF-16 is what's used by everyone else (how about Java? Python?) I > > think that's a strong reason to use it. I don't know Unicode well > > enough to say otherw

Re: [Haskell-cafe] Interesting folds over bytestring lists?

2007-09-21 Thread Duncan Coutts
In message <[EMAIL PROTECTED]> "Justin Bailey" <[EMAIL PROTECTED]> writes: > On 9/20/07, Duncan Coutts <[EMAIL PROTECTED]> wrote: > > A lazy bytestring is a list of strict bytestring which externally looks > > like one > > big string. Could you

Re: [Haskell-cafe] Interesting folds over bytestring lists?

2007-09-20 Thread Duncan Coutts
In message <[EMAIL PROTECTED]> "Justin Bailey" <[EMAIL PROTECTED]> writes: > I have a data structure which is a list of bytestrings, but externally > it looks like one big string. A lazy bytestring is a list of strict bytestring which externally looks like one big string. Could you not just use a

Re: [Haskell-cafe] Hackage and GHC 6.8

2007-09-08 Thread Duncan Coutts
On Sat, 2007-09-08 at 14:50 +0100, Neil Mitchell wrote: > Hi Neil, > > > Given that GHC 6.8 is just around the corner and, given how it has > > re-organised the libraries so that the dependencies in many (most/all) > > the packages in the hackage DB are now not correct. > > > > Is there a plan of

Re: [Haskell-cafe] RE: Definition of the Haskell standard library

2007-09-01 Thread Duncan Coutts
On Sat, 2007-09-01 at 18:47 +0200, Sven Panne wrote: > On Tuesday 31 July 2007 19:39, Duncan Coutts wrote: > > [...] > > The docs for those packages would be available for packages installed > > via cabal (assuming the user did the optional haddock step) and would > > li

Re: [Haskell-cafe] gtk library installation from ubuntu repository

2007-08-31 Thread Duncan Coutts
On Fri, 2007-08-31 at 20:32 +0530, Vikrant wrote: > Hi, >I am using ubuntu 7.04. If I try to install libghc6-gtk-dev package > using apt-get (or aptitude) my installation hangs at following stage > > building GHCi > library /usr/lib/haskell-packages/ghc6/lib/gtk-0.9.10.5/HSgtk.o... It's a pac

Re: [Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag causes problems

2007-08-30 Thread Duncan Coutts
On Wed, 2007-08-29 at 10:05 -0400, Thomas Hartman wrote: > > Ah ok, so I did > > echo ":main build -v3" | /usr/local/bin/ghci-6.7.20070816 Setup.hs > 1>build.out 2>build.err > > and this does indeed seem more informative. advice? Turns out this was a bug in FilePath that Cabal was hitting. Th

Re: [Haskell-cafe] 2D game graphics library for Haskell?

2007-08-30 Thread Duncan Coutts
On Fri, 2007-08-24 at 12:31 +0200, peterv wrote: > Anyway, SOE is great for learning Haskell, but it lacks a couple of > fundamental functions to make it really attractive, like: > - Support for images > > - Support for rendering to an “offscreen graphics surface” and > reading the p

Re: [Gtk2hs-users] [Haskell-cafe] Bug in Gtk2HS 0.9.12/SOE on WinXP? Or is it just me?

2007-08-30 Thread Duncan Coutts
On Fri, 2007-08-24 at 11:58 +0200, Malte Milatz wrote: > Peter Verswyvelen <[EMAIL PROTECTED]>: > > However, in the code below the blue and green triangle should render on top > > of each other, but the green triangle is rendered incorrectly. > > > > Being a newbie, I hesitate to file a bug repor

Re: [Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag causes problems

2007-08-28 Thread Duncan Coutts
On Tue, 2007-08-28 at 18:19 -0400, Thomas Hartman wrote: > > Well, I built with -v3 as suggested, but the ouptut doesn't seem that > helpful to me. ghc compile commands, at any rate, do not appear to be > outputted Sorry, I meant to pass -v3 to cabal, not to ghc compiling/running Setup.hs > $ e

Re: [Haskell-cafe] latest cabal conflict?

2007-08-24 Thread Duncan Coutts
On Fri, 2007-08-24 at 09:45 +0200, Luc TAESCH wrote: > when trying to build the latest cabal from darcs, > I got > [EMAIL PROTECTED]:~/src/cabinstall/cabal$ runghc Setup.lhs configure > > Distribution/Simple.hs:110:7: > Could not find module `System.FilePath': > it was found in multiple

Re: [Haskell-cafe] cabal install of HDBC-odbc fails on ghc 6.7, -I flag causes problems

2007-08-22 Thread Duncan Coutts
On Mon, 2007-08-20 at 13:10 -0400, Thomas Hartman wrote: > > problemw with the -I flag to ghc are causing cabal install to fail for > hdbc-odbc (darcs head). > Any tips on debugging this cabal install would be appreciated. > $ runghc Setup.hs configure; runghc Setup.hs build Try with -v3 is:

Re: [Haskell-cafe] Re: trouble building 6.7 on ubuntu

2007-08-16 Thread Duncan Coutts
On Thu, 2007-08-16 at 22:22 +0300, Esa Ilari Vuokko wrote: > On 8/16/07, Thomas Hartman <[EMAIL PROTECTED]> wrote: > Setup: Warning: Unknown fields: nhc98-options (line 173) > and then a cryptic error involving HsColour > I think you run into Cabal bug - you need to remove (

Re: [Haskell-cafe] Syntax for lambda case proposal could be "\of"

2007-08-15 Thread Duncan Coutts
On Wed, 2007-08-15 at 11:06 -0700, Stefan O'Rear wrote: > > Why not just: > > > > sumTo0 = foldr (\0 k -> 0 > > n k -> n + k) 0 > > Because it would break a very large amount of old code, and I think H' > was supposed to be upward compatible: Aye, that'd be bad. > foo = getSom

Re: [Haskell-cafe] Syntax for lambda case proposal could be "\of"

2007-08-15 Thread Duncan Coutts
On Wed, 2007-08-15 at 10:50 -0700, Stefan O'Rear wrote: > OTOH, your proposal provides (IMO) much more natural syntax for > multi-pattern anonymous functions, especially if we stipulate that > unlike a case (but like a lambda) you can have multiple arguments; then > you could write stuff like: >

Re: [Haskell-cafe] Syntax for lambda case proposal could be "\of"

2007-08-15 Thread Duncan Coutts
On Wed, 2007-08-15 at 18:23 +0100, Brian Hulley wrote: > Therefore I propose: > > \of > alts > > which doesn't suffer this problem since the keyword "of" can never > follow a '\' in the existing grammar. Or how about: \case of alts which seems clearer to me. Similarly, the k

Re: [Haskell-cafe] Pure functional GUI (was

2007-08-09 Thread Duncan Coutts
On Thu, 2007-08-09 at 08:59 +0800, Hugh Perkins wrote: > To be fair, GTK is pretty standard. This is so even for "big name" > gc'd imperative languages such as C#. Sure, you can use Windows.Forms > in C#, but you often wouldnt, because of the patent burden. > Also, gtk in partnership with glade r

re: [Haskell-cafe] Pure functional GUI (was "a regressive view of support for imperativeprogramming in Haskell")

2007-08-08 Thread Duncan Coutts
On Wed, 2007-08-08 at 19:14 +, Peter Verswyvelen wrote: > So could you please tell me more about the problem with pure > functional GUIs and why this is not part of the Haskell library? I > mean a GUI library completely written in Haskell, not wrapping a > popular library. Partly because just

Re: [Haskell-cafe] c2hs and structs?

2007-08-06 Thread Duncan Coutts
On Sat, 2007-08-04 at 23:59 +0100, Magnus Therning wrote: > I can't seem to find any information on how to deal with C functions > that return a (pointer to a) struct. C2hs tells me there's no automatic > support for marshalling structs (I'm using version 0.14.5). > > If I'm to do it by hand, is

Re: [Haskell-cafe] Re: When is waitForProcess not necessary?

2007-08-03 Thread Duncan Coutts
On Fri, 2007-08-03 at 14:51 +, Dave Bayer wrote: > The Hackage/Cabal universe takes the perspective that one is a committed > Haskell user, and one wants the same diversity of tools enjoyed, say, in > the Perl universe. When one uses Haskell to write a tool whose use is > standalone and not Ha

[Haskell-cafe] Re: [Haskell] ANN: encoding-0.1 release

2007-08-02 Thread Duncan Coutts
On Thu, 2007-08-02 at 18:44 +0200, Wolfgang Jeltsch wrote: > Am Donnerstag, 2. August 2007 12:22 schrieb Henning Günther: > > […] > > > ISO 8859-* (alias latin-*) > > Not every ISO-8859-* encoding is a Latin-* encoding. > > > […] > > Wouldn’t it be good to use some already existing library

Re: [Haskell-cafe] Some Haskell platformish questions

2007-08-01 Thread Duncan Coutts
On Wed, 2007-08-01 at 17:29 -0700, David Pollak wrote: > Duncan, > > Okay... I'm pretty darned impressed. > > I downloaded the packages and got my first Haskell/Glade app running > in about the same amount of time as it took me to get my first VS.Net > app up and running. Excellent :-) > Thanks

Re: [Haskell-cafe] Some Haskell platformish questions

2007-08-01 Thread Duncan Coutts
On Wed, 2007-08-01 at 15:31 -0700, David Pollak wrote: > Duncan, > > Many thanks to you as well! > > On 8/1/07, Duncan Coutts <[EMAIL PROTECTED]> wrote: > On Wed, 2007-08-01 at 13:48 -0700, David Pollak wrote: > > > * Can GHC generate sta

Re: [Haskell-cafe] Some Haskell platformish questions

2007-08-01 Thread Duncan Coutts
On Wed, 2007-08-01 at 13:48 -0700, David Pollak wrote: > So... on to the questions: First of all I recommend you check out these resources: The standard libraries: http://haskell.org/ghc/docs/latest/html/libraries/ A large collection of other libraries: http://hackage.haskell.org/ Another dire

Re: [Haskell-cafe] OS swapping and haskell data structures

2007-08-01 Thread Duncan Coutts
On Wed, 2007-08-01 at 12:32 -0700, Alex Jacobson wrote: > Ok, so for low throughput applications, you actually need a disk > strategy. Got it. > > Ok, is there a standard interface to BerkleyDB or some other disk based > store? Well on hackage there's anydbm and BerkeleyDB. The former is proba

Re: [Haskell-cafe] OS swapping and haskell data structures

2007-08-01 Thread Duncan Coutts
On Wed, 2007-08-01 at 11:31 -0700, Bryan O'Sullivan wrote: > Alex Jacobson wrote: > > If you create a Data.Map or Data.Set larger than fits in physical > > memory, will OS level swapping enable your app to behave reasonably or > > will things just die catastrophically as you hit a memory limit? >

Re: Re : Re : Re : [Haskell-cafe] Indentation woes

2007-08-01 Thread Duncan Coutts
On Wed, 2007-08-01 at 16:05 +0200, david48 wrote: > On the topic of indenting, it would be nice if there was a way to tell > the compiler the size of the tab characters. > > The way it is now, I have to use space characters to indent. Good! You're doing exactly the right thing according to the Ha

Re: [Haskell-cafe] Knuth Morris Pratt for Lazy Bytestrings implementation

2007-07-31 Thread Duncan Coutts
On Wed, 2007-08-01 at 02:30 +0100, Tim Docker wrote: > > If anyone can come up with a fast search implementation for strict > > and/or lazy ByteStrings I'll include it in the bytestring package. > > Out of curiosity, is it intentional or an oversight that findSubstrings > is only implemented on st

Re: [Haskell-cafe] Knuth Morris Pratt for Lazy Bytestrings implementation

2007-07-31 Thread Duncan Coutts
On Wed, 2007-08-01 at 01:51 +0100, Tim Docker wrote: > Now I wonder what that 7MB file might be? :-) > > We (team TNT) implemented KMP over lazy bytestrings as part of our icfp > 2007 contest entry. As I remember, for the DNA evaluator it gave modest > speed improvements over more naïve searching.

RE: [Haskell-cafe] RE: Definition of the Haskell standard library

2007-07-31 Thread Duncan Coutts
On Tue, 2007-07-31 at 17:26 +0100, Simon Peyton-Jones wrote: > | I see it as a really big deal that documentation becomes fragmented when > | one is using many packages, so that it's harder to find what you want. > | In fact, I'd classify that as the single biggest reason that I don't use > | many

Re: [Haskell-cafe] Re: Conditional compilation of Setup.hs

2007-07-31 Thread Duncan Coutts
On Tue, 2007-07-31 at 17:20 +0400, Bulat Ziganshin wrote: > Hello Duncan, > > Tuesday, July 31, 2007, 5:06:35 PM, you wrote: > > >> #ifdef __CABAL_VERSION__ > 117 > >> > >> Is something like this possible with Cabal? > > > No, Cabal does not define any cpp defines like that. > > фафшкб one of t

RE: [Haskell-cafe] Definition of the Haskell standard library

2007-07-31 Thread Duncan Coutts
On Tue, 2007-07-31 at 10:15 +0100, Simon Peyton-Jones wrote: > All true, but not so helpful for Joe User. For Joe, I think it might > be helpful to have some easily-discoverable notion of which package > quality and stability. > > - Package X is "blessed"; lots of people have argued over its des

[Haskell-cafe] Re: Conditional compilation of Setup.hs

2007-07-31 Thread Duncan Coutts
On Tue, 2007-07-31 at 13:46 +0100, Bayley, Alistair wrote: > I'd like to add a #ifdef to Takusen's Setup.hs, so that we can have a > single source file that will compile with ghc-6.6 and ghc-6.6.1. With > ghc-6.6 and Cabal-1.1.6.1 we use splitFileName and joinPaths from > Distribution.Compat.FilePa

Re: [Haskell-cafe] Definition of the Haskell standard library

2007-07-30 Thread Duncan Coutts
On Mon, 2007-07-30 at 11:05 -0700, brad clawsie wrote: > On Mon, Jul 30, 2007 at 05:27:21PM +0100, Duncan Coutts wrote: > > We have tools to solve the downloading and installing all deps problem. > > It's called cabal-install. It's sort-of almost ready for wider testing

Re: [Haskell-cafe] Definition of the Haskell standard library

2007-07-30 Thread Duncan Coutts
On Mon, 2007-07-30 at 09:19 -0600, Chris Smith wrote: > Can someone clarify what's going on with the standard library in > Haskell? > > As of right now, I can download, say, GHC from haskell.org/ghc and get a > set of libraries with it. I can visit > http://haskell.org/ghc/docs/latest/html/lib

Re: [Haskell-cafe] Questions about threads

2007-07-29 Thread Duncan Coutts
On Sun, 2007-07-29 at 17:35 -0500, John Goerzen wrote: > Hi everyone, > > I have been confused by some things about threads for a long time. I'm > hoping someone out there can help clear this up. I'll clean up and > document on the wiki if we get conclusive answers. > > So it seems there are f

<    5   6   7   8   9   10   11   12   13   >