Re: [Haskell-cafe] Announce: bytestring 0.9.1.0

2008-04-20 Thread Duncan Coutts
On Sun, 2008-04-20 at 19:05 -0500, Austin Seipp wrote: That's all good news; will this release of ByteString be used for GHC 6.8.3? I'm a little tired of linking everything against 0.9.0.1 just so I can use Yi (since GHC/the-GHC-API links against it). :) Indeed; this is the biggest

Re: [Haskell-cafe] HTTP and file upload

2008-04-19 Thread Duncan Coutts
On Fri, 2008-04-18 at 13:22 -0700, Adam Smyczek wrote: The following code is just a small wrapper around the Browser module that adds support for multipart/form-data content type. It's more or less a prototype but works fine for me. Looking forward to suggestions how to improve it. Be

Re: [Haskell-cafe] GC'ing file handles and other resources

2008-04-18 Thread Duncan Coutts
On Wed, 2008-04-16 at 11:00 +0530, Abhay Parvate wrote: Your mail gives me an idea, though I am not an iota familiar with compiler/garbage collector internals. Can we have some sort of internally maintained priority associated with allocated objects? The garbage collector should look at these

Re: [Haskell-cafe] Hackage being too strict?

2008-04-18 Thread Duncan Coutts
require Cabal-Version: =1.2.3 If impl(ghc = 6.8) GHC-Options: -XPatternSignatures which was contributed by Duncan Coutts. :-) It seems arbitrary that Hackage would suddenly reject this valid usage. Yes it is valid though I hope you can see the general intention of the suggestion

Re: Re[2]: [Haskell-cafe] Hackage being too strict?

2008-04-18 Thread Duncan Coutts
On Fri, 2008-04-18 at 13:59 +0400, Bulat Ziganshin wrote: Hello Duncan, Friday, April 18, 2008, 1:43:24 PM, you wrote: older Cabal versions). We can make it stricter again in the future when Cabal-1.4+ is much more widely deployed. the problem, imho, is that such tools as Cabal, GHC,

Re: [Haskell-cafe] Hackage being too strict?

2008-04-18 Thread Duncan Coutts
In message [EMAIL PROTECTED] John Goerzen [EMAIL PROTECTED] writes: On Fri April 18 2008 4:43:24 am Duncan Coutts wrote: It seems arbitrary that Hackage would suddenly reject this valid usage. Yes it is valid though I hope you can see the general intention of the suggestion

Re: [Haskell-cafe] Hackage being too strict?

2008-04-18 Thread Duncan Coutts
In message [EMAIL PROTECTED] haskell-cafe@haskell.org writes: On Fri, Apr 18, 2008 at 10:43:24AM +0100, Duncan Coutts wrote: I have now fixed that by eliminating the use of Read in the .cabal parser and basically adding an Other/Unknown constructor to several of the enumeration types

Re: [Haskell-cafe] announcing franchise 0.0

2008-04-18 Thread Duncan Coutts
In message [EMAIL PROTECTED] haskell-cafe@haskell.org, [EMAIL PROTECTED] writes: One goal of franchise is to not require developers to provide redundant information. For instance, you've already listed all the modules you use, and ghc already knows which modules are present in which packages,

Re: [Haskell-cafe] more on my ghc package issues

2008-04-13 Thread Duncan Coutts
On Sat, 2008-04-12 at 23:33 -0500, Galchin, Vasili wrote: 2) This strongly looks like the package database manager, i.e. ghc-pkg. Source please so I can understand where this d*amn unknown package: unix-2.3.0.0 message is coming from and why? Yes, ghc/ghc-pkg is giving this message because

Re: [Haskell-cafe] I/O system brokenness with named pipes

2008-04-11 Thread Duncan Coutts
On Thu, 2008-04-10 at 20:34 -0500, John Goerzen wrote: I have created the named pipe from Haskell no problem. But I can't use writeFile to write data to it. Worse, it returns: *** Exception: /tmp/bakroller.zD0xHj/fifo: openFile: does not exist (No such device or address) What's

Re: [Haskell-cafe] problems building hpodder

2008-04-09 Thread Duncan Coutts
On Tue, 2008-04-08 at 15:43 -0500, John Goerzen wrote: On Tue April 8 2008 3:21:34 pm Karl Hasselström wrote: http://www.haskell.org/haskellwiki/Package_versioning_policy seems to have something relevant to say. build-depends: HaXml = 1.13.3 1.14 ought to do the trick, since any

Re: [Haskell-cafe] ANNOUNCE: Well-Typed LLP - The Haskell Consultants

2008-04-06 Thread Duncan Coutts
On Mon, 2008-04-07 at 02:57 +0400, Bulat Ziganshin wrote: Hello Ian, Monday, April 7, 2008, 2:50:02 AM, you wrote: We (Bjorn Bringert, Duncan Coutts and Ian Lynagh) are pleased to announce that we have recently set up a Haskell consultancy company, Well-Typed LLP (http://www.well

Re: [Haskell-cafe] Gtk2hs on GHC6.8.2?

2008-03-24 Thread Duncan Coutts
In message [EMAIL PROTECTED] Ryan Ingram [EMAIL PROTECTED] writes: The WinXP binary release of Gtk2hs won't install for me; it seems to expect GHC6.8.1 and refuses to install on 6.8.2. Right. It does that on purpose and with good reason. Do you think the error message could be improved? The

Re: [Haskell-cafe] Re: [Haskell] ANN: The Disciplined Disciple Compiler - alpha 1

2008-03-20 Thread Duncan Coutts
On Thu, 2008-03-20 at 15:08 +0100, Wolfgang Jeltsch wrote: More information (and download!) available from: http://www.haskell.org/haskellwiki/DDC or http://code.google.com/p/disciple DDC: more than lambdas. Short question: Is it appropriate to put the homepage of a non-Haskell

[Haskell-cafe] Three Cabal/Hackage GSoC project proposals

2008-03-20 Thread Duncan Coutts
All, I've proposed three GSoC proposals on different aspects of Cabal and Hackage: * Cabal 'make-like' dependency framework http://hackage.haskell.org/trac/summer-of-code/ticket/1552 * cabal-install package dependency resolution

Re: [Haskell-cafe] Need Cabal/library building help for windows

2008-03-18 Thread Duncan Coutts
On Tue, 2008-03-18 at 09:28 +, Alistair Bayley wrote: On 17/03/2008, Felix Martini [EMAIL PROTECTED] wrote: Ryan Ingram wrote: For reference, I'm using GHC6.8.1 on WinXP. setup.hs: ld is required but it could not be found. I did have the same issue with GHC 6.8.1 on Windows.

Re: [Haskell-cafe] Re: Constructing Data.Map from ByteString

2008-03-12 Thread Duncan Coutts
On Tue, 2008-03-11 at 11:13 +, Dave Tapley wrote: Just a few updates on this one: I've upgraded to bytestring-0.9.0.5 from Darcs, no improvement. Also this morning I tried using Data.HashMap with Bytestring's readInt and HashMap's hashInt.. The result was a Stack space overflow :(

Re: [Haskell-cafe] Re: (flawed?) benchmark : sort

2008-03-09 Thread Duncan Coutts
On Sun, 2008-03-09 at 23:04 -0400, Dan Doel wrote: On Sunday 09 March 2008, Krzysztof Skrzętnicki wrote: What do you think about this particular function? Some thoughts: 1) To get your function specifically, you could just use Data.Set.Set a instead of Map a (). 2) What does it do

Re: [Haskell-cafe] Build dependency problem with bytestring.

2008-03-07 Thread Duncan Coutts
On Fri, 2008-03-07 at 00:59 -0800, Jon Strait wrote: Don Stewart wrote: jstrait: Hi all, I'm upgrading HAppS from my 0.9.2 to the current 0.9.2.1 in Hackage. Some HAppS components have built and installed (IxSet and Util). Halfway through the HAppS-State build, the GHC

Re: [Haskell-cafe] CABAL: conditional executable?

2008-03-06 Thread Duncan Coutts
On Thu, 2008-03-06 at 16:29 +, Magnus Therning wrote: On 3/6/08, Magnus Therning [EMAIL PROTECTED] wrote: On 3/6/08, Magnus Therning [EMAIL PROTECTED] wrote: On 3/4/08, Thomas Schilling [EMAIL PROTECTED] wrote: Oh, right.

Re: [Haskell-cafe] cabal errors

2008-02-29 Thread Duncan Coutts
On Thu, 2008-02-28 at 07:10 -0500, Kristofer Buffington wrote: Hi I installed ghc 6.8 from source and I've been installing packages from hackage. I'm not sure when the problem started, but I've been getting this error trying to install any cabal package.. accept apparently, Cabal itself.

Re: [Haskell] Re: [Haskell-cafe] GSoC 2008

2008-02-26 Thread Duncan Coutts
On Tue, 2008-02-26 at 23:39 +0100, Lemmih wrote: On Tue, Feb 26, 2008 at 8:43 PM, Johan Tibell [EMAIL PROTECTED] wrote: On Mon, Feb 25, 2008 at 3:28 PM, Malcolm Wallace [EMAIL PROTECTED] wrote: Google has today announced that they will be running their Summer of Code programme

Re: [Haskell-cafe] parsing c

2008-02-25 Thread Duncan Coutts
On Mon, 2008-02-25 at 03:06 +0100, Bertram Felgenhauer wrote: Evan Martin wrote: So two questions: Is there an alternative C-parsing library? Has anyone looked into librarifying c2hs's parser? I have split c2hs into three packages once, the remains of CTK that it uses, the C parser and

Re: [Haskell-cafe] haddock as a markdown preprocessor

2008-02-22 Thread Duncan Coutts
On Fri, 2008-02-22 at 07:21 -0800, Keith Fahlgren wrote: On 2/21/08 3:57 PM, Duncan Coutts wrote: Consequently there is no support in Cabal etc for those kinds of documentation. GHC, Cabal and c2hs amongst others use docbook but it's a horrible format to write and the tools to process

Re: [Haskell-cafe] haddock as a markdown preprocessor

2008-02-22 Thread Duncan Coutts
On Sat, 2008-02-23 at 01:28 +, Duncan Coutts wrote: Basically I'd like to know what tool (that is packaged on every linux distro) do I use to convert a docbook .xml file to xhtml. I took a quick look on the FAQ linked from docbook.org/help and could not immediately find what standard

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-21 Thread Duncan Coutts
On Wed, 2008-02-20 at 19:01 -0600, John Goerzen wrote: On Wednesday 20 February 2008 5:13:34 pm Duncan Coutts wrote: On Wed, 2008-02-20 at 08:39 -0600, John Goerzen wrote: * The iconv library works only on lazy ByteStrings, and does not handle Strings or strict ByteStrings

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-21 Thread Duncan Coutts
On Thu, 2008-02-21 at 10:06 +0100, Johan Tibell wrote: Hi John! On Wed, Feb 20, 2008 at 3:39 PM, John Goerzen [EMAIL PROTECTED] wrote: 3) Would it make sense to base as much code as possible in the Haskell core areound ListLike definitions? Here I think of functions such as

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-21 Thread Duncan Coutts
On Thu, 2008-02-21 at 05:07 +0100, Henning Thielemann wrote: As long as it is only about speeding up list processing, one might also consider this as optimization problem. This could be handled without adapting much List based code in applications to a generic sequence class. That is, if I

Re: [Haskell-cafe] haddock as a markdown preprocessor

2008-02-21 Thread Duncan Coutts
On Wed, 2008-02-20 at 16:43 -0800, Conal Elliott wrote: There was a chat today on #haskell (15:08 to 16:10) about evolving haddock. I'd like to get comments. The goal is to get the full functionality of a general purpose, programmer-friendly markup language like markdown. One example is

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-21 Thread Duncan Coutts
On Thu, 2008-02-21 at 13:37 +0100, Johan Tibell wrote: I would be very happy if people didn't use the .Char8 versions of ByteString except for being able to write byte literals using pack. (I would be even happier if Haskell had byte literals.) If people start using ByteString in their

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-21 Thread Duncan Coutts
On Thu, 2008-02-21 at 13:34 +0100, Henning Thielemann wrote: I suppose we mean the same. My question is: Why do we use ByteString instead of [Word8] ? Entirely because of efficiency, right? So if we could stick to List code and only convert to ByteString at the end and the compiler all

Re: [Haskell-cafe] haddock as a markdown preprocessor

2008-02-21 Thread Duncan Coutts
On Thu, 2008-02-21 at 13:12 +, Alistair Bayley wrote: On 21/02/2008, Duncan Coutts [EMAIL PROTECTED] wrote: To be honest I like the fact that haddock's markup is really simple and perhaps somewhat restrictive. A great improvement though would be to make it easy to extract the docs

Re: [Haskell-cafe] haddock as a markdown preprocessor

2008-02-21 Thread Duncan Coutts
On Thu, 2008-02-21 at 16:54 -0800, Conal Elliott wrote: I guess there was some confusion about the haddock-as-preprocessor idea. Here's another try: Pare the Haddock markup language down to very few markup directives, say just 'foo' and Foo.Bar. (Of course, Haddock continues to read and

Re: [Haskell-cafe] The Proliferation of List-Like Types

2008-02-20 Thread Duncan Coutts
On Wed, 2008-02-20 at 08:39 -0600, John Goerzen wrote: * The iconv library works only on lazy ByteStrings, and does not handle Strings or strict ByteStrings There is a very good reason for this. The right solution in this particular example is not to overload every internal string

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

Re: [Haskell-cafe] Re: Haskell maximum stack depth

2008-02-19 Thread Duncan Coutts
On Tue, 2008-02-19 at 12:22 +, Adrian Hey wrote: To be honest, in all my years of Haskelling I can't think of a single occasion where I've had a program get stuck in an infinite loop. I've had plenty of stack overflows, and they're reported on the mailing lists pretty regularly, but on

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 a

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.html

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

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

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 use 'cl'. That's a longer term project that GHC HQ

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 those. Currently we pass

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 that this C code relies on being built with MS's C

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

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 specify them

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

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 case

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) In the

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 '\229'.

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 changed, and mapping 'ord' on a string

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 the

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 fly,

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 --user foo The

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 foo The prefix can also be set in the $HOME/.cabal/config file. Syntax

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 now

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 distributed. Note

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

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 weirdo

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'll

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 to use cooperative scheduling between

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 included in

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 necessary to cause the

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 agl at 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

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 +, 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 send us a new version in .html or any other format

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 put some

[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 website needs a

[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

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. It looks that c2hs does more

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-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 Use

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 somewhere in your

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 with unix

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 and have the

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 be compatible with

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 blocking. You

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 (hGetContents e =

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

[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

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 http://haskell.org/haskellwiki/Class_system_extension_proposal

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 needed). Though note

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 old

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, I got

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 actually be

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.

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

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/haskell cd cabal [EMAIL PROTECTED]: .../haskell/cabal

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 error at

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? (...) One sensible suggestion

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 including my

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 actually

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 box on

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-6.6

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) This

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 stdio.h was defined in the days of ASCII-only strings, and the

<    4   5   6   7   8   9   10   11   12   13   >