[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] 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 >

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 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] 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] 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] 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-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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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-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] 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] 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: 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 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

[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] 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

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] 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] [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 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] 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] 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] 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] 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] 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] 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] 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: 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

[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] 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

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] c2hs and cabal

2007-12-11 Thread Duncan Coutts
On Tue, 2007-12-11 at 19:14 +0100, Stefan Kersten wrote: > > On 02.12.2007, at 22:34, Eric Sessoms wrote: > >> Just add > >> > >> Build-Tools: c2hs > >> > >> And cabal will take it from there. > > thanks eric, that's really pleasingly simple > (it appears that the Build-Tools: line isn't even ne

Re: [Haskell-cafe] ANNOUNCE: dataenc-0.10.1

2007-12-12 Thread Duncan Coutts
On Wed, 2007-12-12 at 13:30 +, Magnus Therning wrote: > The visible change is the addition of a function, decode', that allows > lazier decoding by shifting some responisility to the user. That's interesting. It's in the same spirit as the lazy variant provided in the iconv lib. It'll be in

Re: [Haskell-cafe] Execution of external command

2007-12-13 Thread Duncan Coutts
On Thu, 2007-12-13 at 15:48 +0300, Bulat Ziganshin wrote: > Hello haskell-cafe, > > please help me with selection of proper function to use > > i need to run external command with parameter and get its stdout, smth > like this: > > output <- system "cmd param" > > the code should be compatible

Re: Re[2]: [Haskell-cafe] Execution of external command

2007-12-13 Thread Duncan Coutts
On Thu, 2007-12-13 at 16:27 +0300, Bulat Ziganshin wrote: > Hello Duncan, > > Thursday, December 13, 2007, 4:10:26 PM, you wrote: > > >> i need to run external command with parameter and get its stdout, smth > > > temporary file. It seems it is not possible to use pipes to get the > > stdout an

Re: [Haskell-cafe] Execution of external command

2007-12-13 Thread Duncan Coutts
On Thu, 2007-12-13 at 15:06 +0200, Yitzchak Gale wrote: > Hi Bulat, > > You wrote: > > please help me with selection of proper function to use > > > > i need to run external command with parameter and get its stdout, smth > > like this: > > > > output <- system "cmd param" > > > > the code should

Re: Re[2]: [Haskell-cafe] Execution of external command

2007-12-13 Thread Duncan Coutts
On Thu, 2007-12-13 at 17:08 +0300, Bulat Ziganshin wrote: > Hello Duncan, > > Thursday, December 13, 2007, 4:51:20 PM, you wrote: > > >> OK, I'll bite. What's wrong with runInteractiveCommand? > > > It requires threads because you have to pull from both the stdout and > > stderr to prevent bloc

Re: [Haskell-cafe] Re: Execution of external command

2007-12-13 Thread Duncan Coutts
On Thu, 2007-12-13 at 19:38 +0200, Yitzchak Gale wrote: > Simon Marlow wrote: > > It could deadlock if the script produces enough stderr to fill up its pipe > > buffer > > If we need to worry about that, then what about this: > > (_,h,e,_) <- runInteractiveCommand "script params" > forkIO (hGet

Re: [Haskell-cafe] Problems with split-objs

2007-12-13 Thread Duncan Coutts
On Mon, 2007-11-26 at 22:48 +, Magnus Therning wrote: > I've followed the instructions at [1] to create a .deb of vty[2]. It > seems the helper scripts for Debian passes `--enable-split-obj' when > running `./Setup.lhs configure'. This results in numerous multiple > definitions of stuff. I

Re: [Haskell-cafe] [RFC] benchmarks of bytestrings, teaser

2007-12-15 Thread Duncan Coutts
On Sat, 2007-12-15 at 09:25 +0100, Peter Lund wrote: > What do you think the relative speeds are of the six small haskell > programs at the end of this email? Ok, I presume this is a guessing game and we're supposed to just look at the code without running and timing them. > All they do is read

Re: [Haskell-cafe] JOB OFFER / Haskell for commercial projects?

2007-12-15 Thread Duncan Coutts
On Sat, 2007-12-15 at 14:29 +0100, Wolfgang Jeltsch wrote: > Am Samstag, 15. Dezember 2007 13:05 schrieb Paul Johnson: > > […] > > > The GHC licence is basically a BSD with attribution. Compiled programs > > include the run-time, so you would just have to include the copyright > > notice somewher

Re: FFI question -- was: [Haskell-cafe] New slogan for haskell.org

2007-12-19 Thread Duncan Coutts
On Wed, 2007-12-19 at 19:07 -0800, Don Stewart wrote: > There are three approaches, depending on the size of your project. > > Write your ow FFI decls manually. > > - Good when you have a small job > - and the C types are simple > - example: > strlen > >

Re: [Haskell-cafe] upgrading regex in GHC 6.8.2

2007-12-20 Thread Duncan Coutts
On Fri, 2007-12-21 at 13:58 +1030, Michael Mounteney wrote: > Hello, I have an application that uses/used Text.Regex and have just updated > GHC from 6.6.1 to 6.8.2 and it seems that Text.Regex is gone, so I'm trying > to install the replacement from Hackage. > > First of all, the procedure is

Re: FFI question -- was: [Haskell-cafe] New slogan for haskell.org

2007-12-29 Thread Duncan Coutts
On Fri, 2007-12-21 at 10:25 +0100, Gour wrote: > On Thu, 20 Dec 2007 03:41:21 + > Duncan Coutts <[EMAIL PROTECTED]> wrote: > > In gtk2hs we use both. We use c2hs for all function calls and we use > > hsc2hs to help us write Storable instances for a few structures.

[Haskell-cafe] easy cabal tasks

2007-12-30 Thread Duncan Coutts
People are often unsure about where they can help out with Cabal. One thing we can do to make that easier is to point out smaller simpler tasks that people might like to have a go at. We have a list of tasks that are marked as easy or very easy: http://hackage.haskell.org/trac/hackage/report/13

[Haskell-cafe] Re: Hackage web page

2008-01-02 Thread Duncan Coutts
In message <[EMAIL PROTECTED]> "Neil Mitchell" <[EMAIL PROTECTED]> writes: > Hi, > > The hackage web page confuses me: > http://hackage.haskell.org/packages/hackage.html > Hackage has now graduated from being a nice idea to being a critial > user-focused thingy, which is great. Perhaps the websit

Re: [Haskell-cafe] Supporting both cabals?

2008-01-03 Thread Duncan Coutts
In message <[EMAIL PROTECTED]> Magnus Therning <[EMAIL PROTECTED]> writes: > GHC 6.8 has just made it into Debian in a usable form. (w00t!) > > Due to the library split my old cabal files don't work any longer. > updating them isn't the problem, the problem is keeping them compatible > with both

Re: [Haskell-cafe] ANN / CFP - LLVM bindings for Haskell

2008-01-03 Thread Duncan Coutts
In message <[EMAIL PROTECTED]> Don Stewart <[EMAIL PROTECTED]> writes: > bos: > > Don Stewart wrote: > > > > >> (Hackage can't host code that uses GHC 6.8.2's language extension names > > >> yet.) > > > > > > {-# LANGUAGE XYZ #-} pragmas? If so, I'm pretty sure they're > > > supported, since xmo

Re: [Haskell-cafe] ANN / CFP - LLVM bindings for Haskell

2008-01-03 Thread Duncan Coutts
In message <[EMAIL PROTECTED]> Ross Paterson <[EMAIL PROTECTED]> writes: > On Thu, 03 Jan 2008 03:43:49 -0800, Bryan O'Sullivan wrote: > > (Hackage can't host code that uses GHC 6.8.2's language extension names > > yet.) > > It should be able to now. Thanks very much Ross. BTW, I think we should

Re: [Haskell-cafe] Re: Hackage web page

2008-01-08 Thread Duncan Coutts
On Fri, 2008-01-04 at 17:53 -0500, [EMAIL PROTECTED] wrote: > On 2008.01.02 17:20:04 +0000, Duncan Coutts > <[EMAIL PROTECTED]> scribbled 0.8K characters: > > You're quite right. We'd welcome a rewrite. You or anyone else is most > > welcome > > to sen

Re: [Haskell-cafe] Re: ANN: A triple of new packages for talking to the outside world

2008-01-09 Thread Duncan Coutts
On Wed, 2008-01-09 at 09:26 +, Dominic Steinitz wrote: > Adam Langley imperialviolet.org> writes: > > > But if this is useful to you, make any requests. I'll (hopefully) do > > them, clean it up and push a new release of binary-strict. > > > How difficult would it be to have a getBits funct

Re: [Haskell-cafe] Re: Why purely in haskell?

2008-01-10 Thread Duncan Coutts
On Fri, 2008-01-11 at 01:12 +0100, Achim Schneider wrote: > Tillmann Rendel <[EMAIL PROTECTED]> wrote: > > > Achim Schneider wrote: > > > [1..] == [1..] > > > > > > [some discussion about the nontermination of this expression] > > > > > > The essence of laziness is to do the least work necessa

Re: [Haskell-cafe] MonadPrompt + Gtk2Hs = ?

2008-01-13 Thread Duncan Coutts
On Sun, 2008-01-13 at 14:53 -0200, Felipe Lessa wrote: > Problem solved? Not really: > > - This kind of implementation hides lots of subtle bugs. For example, > because of postGUIAsync being used in Print case, the user will see > multiple dialog boxes at once and -- strangely enough -- he'l

Re: [Haskell-cafe] MonadPrompt + Gtk2Hs = ?

2008-01-13 Thread Duncan Coutts
On Sun, 2008-01-13 at 16:37 -0200, Felipe Lessa wrote: > On Jan 13, 2008 4:01 PM, Duncan Coutts <[EMAIL PROTECTED]> > wrote: > > On Sun, 2008-01-13 at 14:53 -0200, Felipe Lessa wrote: > > Are you linking using -threaded or not? If not then you need another > > trick

Re: [Haskell-Cafe] Add "number of downloads" to hackageDB page?

2008-01-13 Thread Duncan Coutts
On Sun, 2008-01-13 at 23:18 +0100, Hugh Perkins wrote: > I seem to remember a thread about this a while back actually, but... > > Any chance of adding the number of downloads to the hackageDB page? > > For those packages that are included in ghc, hugs etc, perhaps add a > green tick with "includ

Re: [Haskell-cafe] Getting frantic with FranTk

2008-01-14 Thread Duncan Coutts
On Sun, 2008-01-13 at 14:54 +0100, Torsten Otto wrote: > Howdy, > > with a just-in-time-learning approach I managed to teach my class of > advanced high schoolers the basics of functional programming using > Haskell (I had only used Scheme before). Now to show them that Haskell > is not a w

[Haskell-cafe] Re: [Haskell] ANN: GLFW-0.3 released

2008-01-16 Thread Duncan Coutts
On Tue, 2008-01-15 at 23:32 -0500, Paul L wrote: > GLFW is a Haskell module for GLFW OpenGL framework. It provides an > alternative to GLUT for OpenGL based Haskell programs. > > The current 0.3 version is for download from hackageDB at: > http://hackage.haskell.org/cgi-bin/hackage-scripts/packag

Re: [Haskell-cafe] shootout using 6.6?

2008-01-18 Thread Duncan Coutts
On Thu, 2008-01-17 at 16:41 -0800, Don Stewart wrote: > garious: > >[1]http://shootout.alioth.debian.org/gp4/haskell.php > > > >Anyone know if the Language Shootout is actually using GHC 6.6 or is that > >a typo? > > It's using 6.6 till the gentoo 6.8 package is more widely distribut

Re: [Haskell-cafe] Re: need help for cabal-install

2008-01-19 Thread Duncan Coutts
On Fri, 2008-01-18 at 23:44 -0500, Chris Ball wrote: > Hi Steve, > >> Now with "cabal install", I can not figure out where to specify the >> --prefix. Cabal always complains "failed to install package". > > I think you're just missing a "--user": > >$ cabal install --prefix=$HOME --

Re: [Haskell-cafe] Re: need help for cabal-install

2008-01-19 Thread Duncan Coutts
On Sat, 2008-01-19 at 09:30 -0500, Steve Lihn wrote: > Just tried to test drive another feature and got the nasty error: > > > cabal list > Stack space overflow: current size 8388608 bytes. > Use `+RTS -Ksize' to increase it. Oops, silly error on my part. darcs pull and it's fixed. Duncan

Re: [Haskell-cafe] Re: need help for cabal-install

2008-01-19 Thread Duncan Coutts
On Sat, 2008-01-19 at 09:27 -0500, Steve Lihn wrote: > On Jan 19, 2008 9:18 AM, Duncan Coutts <[EMAIL PROTECTED]> wrote: > > > > > > > > I think you're just missing a "--user": > > > > > >$ cabal install --prefix=$HOME --user

Re: [Haskell-cafe] How best to make GHC 6.6 and 6.8 co-exist on one server/account

2008-01-19 Thread Duncan Coutts
On Sat, 2008-01-19 at 10:47 -0500, Steve Lihn wrote: > Hi, > It appears some of the latest hackages are moving towards 6.8 to take > advantage of the new features, while quite a few remains at 6.6. The > compatibility between the two versions has been problematic. I only > have 6.6 installed, but

Re: [Haskell-cafe] Throwback of inferred types

2008-01-20 Thread Duncan Coutts
On Sun, 2008-01-20 at 21:02 +, Jon Harrop wrote: > On Sunday 20 January 2008 21:02:04 [EMAIL PROTECTED] wrote: > > On 2008.01.19 19:11:13 +0100, Peter Verswyvelen <[EMAIL PROTECTED]> > > scribbled > 1.4K characters: > > > I would find it most useful to get type inference information on the f

Re: [Haskell-cafe] Re: need help for cabal-install

2008-01-21 Thread Duncan Coutts
On Mon, 2008-01-21 at 10:15 -0500, Steve Lihn wrote: > Duncan, > I got the latest cabal. The stack overflow is fixed. But the install > command still does not work (on a very simple package). Attached is > the verbose output. It does not like to proceed somewhere between > configure and build. But

Re: [Haskell-cafe] Has character changed in GHC 6.8?

2008-01-22 Thread Duncan Coutts
On Tue, 2008-01-22 at 09:29 +, Magnus Therning wrote: > I vaguely remember that in GHC 6.6 code like this > > length $ map ord "a string" > > being able able to generate a different answer than > > length "a string" That seems unlikely. > At the time I thought that the encoding (in my

Re: [Haskell-cafe] non-alphabetical mathematical symbols as non-infix function names

2008-01-22 Thread Duncan Coutts
On Tue, 2008-01-22 at 07:03 +0100, Cetin Sert wrote: > (¬) :: Bool → Bool > (¬) q = not q > > q = True > ¬ q : parser error on input > q ¬ : parser error (possibly incorrect indentation) > (¬ q) : Couldn't match expected type `Bool -> t' against inferred type > `Bool' In the expression: (� True)

Re: [Haskell-cafe] Has character changed in GHC 6.8?

2008-01-22 Thread Duncan Coutts
On Tue, 2008-01-22 at 12:56 +0300, Miguel Mitrofanov wrote: > > > chr . ord $ 'å' > > '\229' > > What would I have to do to get an 'å' from '229'? > > It seems you already have it; 'å' is the same as '\229'. Yes. > But IO output is still 8-bit, so when you ask ghci to print 'å', you get >

Re: [Haskell-cafe] Has character changed in GHC 6.8?

2008-01-22 Thread Duncan Coutts
On Tue, 2008-01-22 at 13:48 +0100, Henning Thielemann wrote: > On Tue, 22 Jan 2008, Duncan Coutts wrote: > > > > At the time I thought that the encoding (in my case UTF-8) was “leaking > > > through”. After switching to GHC 6.8 the behaviour seems to have > > >

Re: [Haskell-cafe] Upgrading ByteString causes (seemingly) impossible RTS linker errs

2008-01-27 Thread Duncan Coutts
On Sun, 2008-01-27 at 12:54 -0800, Adam Langley wrote: > On Jan 27, 2008 12:24 PM, Don Stewart <[EMAIL PROTECTED]> wrote: > > It should be possible to specify that your lib depends on exactly > > 0.9.0.1 in the .cabal file. > > In the same general area. When you upgrade something like bytestring

Re: code.haskell.org vs darcs.haskell.org (was [Haskell-cafe] Enterprise Haskell AMQP library)

2008-01-28 Thread Duncan Coutts
On Mon, 2008-01-28 at 10:57 +, Bayley, Alistair wrote: > I'm wondering what the relationship is (if any) between code.haskell.org > and darcs.haskell.org. darcs.haskell.org hosts ghc, the core libs and many others. The server is maintained by Galois. Because it hosts the most central bits of

Re: [Haskell-cafe] How to make GHC 6.6 and 6.8 co-exist -- was: First go at reactive programming

2008-01-29 Thread Duncan Coutts
On Tue, 2008-01-29 at 06:15 +, Tim Docker wrote: > stevelihn wrote: > > In my brief experience with Ocaml's GODI, GODI has a way to specify > > them in a so-called config package. The install package then reads > > what it needs from the config package. In perl's CPAN shell, you can > > specif

Re: [Haskell-cafe] Deleting list of elements from Data.Set

2008-01-30 Thread Duncan Coutts
On Wed, 2008-01-30 at 11:05 +, Gracjan Polak wrote: > > My strictness analyser in my brain hurts. Which one (foldl,foldl',foldr) is > the > best way? > > Prelude Data.Set Data.List> let s = fromList [1,2,3,4,5] > Loading package array-0.1.0.0 ... linking ... done. > Loading package containe

Re: [Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

2008-02-02 Thread Duncan Coutts
On Fri, 2008-02-01 at 11:42 +, Magnus Therning wrote: > Is it possible to get Cabal to use 'cl' (Microsoft's C/C++ compiler > shipped with Visual Studio Express)? The problem is to get GHC to use 'cl'. That's a longer term project that GHC HQ are interested in. There's something about it on t

Re: [Haskell-cafe] Issues with hsql-sqllite build; errors from the hackage download

2008-02-02 Thread Duncan Coutts
On Fri, 2008-02-01 at 17:05 -0500, bbrown wrote: > There seems to be an issue with the hsql-sqlite3. Anyone have a fix. Should > I use what is from darcs? HSQL is currently unmaintained. Frederik Eaton was considering taking it over: http://www.nabble.com/HSQL-defunct--td14978532.html Gentoo h

Re: [Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

2008-02-02 Thread Duncan Coutts
On Sat, 2008-02-02 at 18:15 +0100, Felix Martini wrote: > Magnus Therning wrote: > > Is it possible to get Cabal to use 'cl' (Microsoft's C/C++ compiler > > shipped with Visual Studio Express)? > > Duncan Coutts wrote: > > The problem is to get GHC to u

Re: [Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

2008-02-02 Thread Duncan Coutts
On Sat, 2008-02-02 at 18:50 +, Magnus Therning wrote: > Duncan Coutts wrote: > [..] > > It would be reasonable to use the system C compiler rather than ghc, > > however we will have to do more work to find what extra include dirs get > > used and have Cabal pass thos

Re: [Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

2008-02-02 Thread Duncan Coutts
On Sat, 2008-02-02 at 22:33 +, Magnus Therning wrote: > Duncan Coutts wrote: > [..] > > Just so I'm sure I understand... > > Sure thing. > > > Or are you just trying to link some C code statically into a haskell > > program, but it just so happens

Re: [Haskell-cafe] Adding gcc type options with cabal (e.g. -mno-cygwin)

2008-02-04 Thread Duncan Coutts
On Mon, 2008-02-04 at 17:18 -0500, bbrown wrote: > Is there a way to pass misc options to the cabal, ghc process. > > I tried the following: > > extra-libraries: sqlite3 > extra-lib-dirs: C:\cygwin\lib > include-dirs:C:\cygwin\usr\include > ghc-options: -

Re: [Haskell-cafe] RE: highlighting-kate - syntax highlighting library

2008-02-04 Thread Duncan Coutts
On Sun, 2008-02-03 at 19:38 -0200, Felipe Lessa wrote: > On Feb 3, 2008 6:42 PM, mgsloan <[EMAIL PROTECTED]> wrote: > > Would this be suitable for a text editor? > > Note that we already have a binding to GtkSourceView, see > http://www.haskell.org/gtk2hs/docs/current/Graphics-UI-Gtk-SourceView.h

Re: [Haskell-cafe] Adding gcc type options with cabal (e.g. -mno-cygwin)

2008-02-05 Thread Duncan Coutts
On Tue, 2008-02-05 at 00:10 -0500, Berlin Brown wrote: > It looked like it passed the option, but didn't resolve the issue. > Anyone seen that before? See error in previous post. GHC is not a cygwin program. It does not use the cygwin gcc, it always uses its own gcc anyway (which happens to be

Re: [Haskell-cafe] build-depends contraints in a .cabal file

2008-02-19 Thread Duncan Coutts
On Mon, 2008-02-18 at 20:05 -0600, Antoine Latter wrote: > Can I specify an equality constraint in the build-depends field of a > .cabal file? This would say that I want one specific version (because > all the rest of my packages are compiled against that version and I'm > getting type-checking e

<    1   2   3   4   5   6   7   8   9   10   >