Re: [Haskell-cafe] Re: Knot tying vs monads

2007-11-19 Thread John D. Ramsdell
On Nov 17, 2007 3:04 PM, apfelmus [EMAIL PROTECTED] wrote: Unfortunately, I don't have Paulson's book (or any other ML book :) at home. I'm too lazy to figure out the specification from the source code, I guess the code is too opaque, as my colleague claimed. The layout the algorithm

RE: [Haskell-cafe] Stream fusion for Hackage

2007-11-19 Thread Simon Peyton-Jones
| Will it eventually replace Data.List in GHC? | | That is the plan, yep. But first we need to solve the concatMap problem, no? So far as I know, fold/build has the property that if fusion doesn't happen, no harm is done. But streams risk making the program *worse* if Good Things do not

[Haskell-cafe] ANN: The Monad.Reader Issue 9: SoC special

2007-11-19 Thread Wouter Swierstra
I am pleased to announce that a new issue of The Monad.Reader is now available: http://www.haskell.org/haskellwiki/The_Monad.Reader Issue 9 is a Summer of Code Special - it consists of three articles from student participants of Google's Summer of Code, describing the projects they

Re: [Haskell-cafe] ANN: The Monad.Reader Issue 9: SoC special

2007-11-19 Thread Dougal Stanton
On 19/11/2007, Wouter Swierstra [EMAIL PROTECTED] wrote: I am pleased to announce that a new issue of The Monad.Reader is now available: http://www.haskell.org/haskellwiki/The_Monad.Reader Thanks Wouter, the haiku look great! ;-) -- Dougal Stanton [EMAIL PROTECTED] //

Re: [Haskell-cafe] What is the role of $!?

2007-11-19 Thread Henning Thielemann
On Sun, 18 Nov 2007, Andrew Coppin wrote: Lauri Alanko wrote: Please note that if you're using GHC, bang patterns are often much more convenient than $! or seq when you want to enforce strictness: http://www.haskell.org/ghc/docs/latest/html/users_guide/bang-patterns.html Wait, so...

Re: [Haskell-cafe] ANN: The Monad.Reader Issue 9: SoC special

2007-11-19 Thread Yitzchak Gale
Wouter Swierstra wrote: I am pleased to announce that a new issue of The Monad.Reader is now available: http://www.haskell.org/haskellwiki/The_Monad.Reader Dougal Stanton wrote: Thanks Wouter, the haiku look great! ;-) I agree, they are fantastic! (And they are not short.) Perhaps you

[Haskell-cafe] Re: Knot tying vs monads

2007-11-19 Thread ChrisK
John D. Ramsdell wrote: On Nov 17, 2007 3:04 PM, apfelmus [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Unfortunately, I don't have Paulson's book (or any other ML book :) at home. I'm too lazy to figure out the specification from the source code, I guess the code is too opaque,

Re: [Haskell-cafe] Stream fusion for Hackage

2007-11-19 Thread David Roundy
On Sat, Nov 17, 2007 at 06:31:08PM -0800, Don Stewart wrote: Just a quick announce: the stream fusion library for lists, that Duncan Coutts, Roman Leshchinskiy and I worked on earlier this year is now available on Hackage as a standalone package: Just to note: I'm excited about one day using

[Haskell-cafe] Re: Knot tying vs monads

2007-11-19 Thread apfelmus
John D. Ramsdell wrote: On Nov 17, 2007 3:04 PM, apfelmus [EMAIL PROTECTED] wrote: Unfortunately, I don't have Paulson's book (or any other ML book :) at home. I'm too lazy to figure out the specification from the source code, I guess the code is too opaque, as my colleague claimed. The

[Haskell-cafe] HDBC-ODBC crashes on ghc 6.8

2007-11-19 Thread Thomas Hartman
This minimal program below fails in 6.8.1, works for 6.6.1, for up to date HDBC-ODBC-1.1.3. (I tried installing both from package and from darcs head) Installed and running from cygwin. When I run it as runghc fail.hs I get a windows popup error ghc.exe has encountered a problem and needs to

[Haskell-cafe] Re: Knot tying vs monads

2007-11-19 Thread ChrisK
The data dependency is circular. The case e of Str and Brk are not-circular: layout examines the input parameters to determine column'. Then column' is used to compute columnOut and s'. Then the current data is prepended to s'. The Blo case is the circular one. Pushing the circular

[Haskell-cafe] expanded standard lib

2007-11-19 Thread brad clawsie
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 state of many fundamental codebases such as networking and

[Haskell-cafe] The Yampa Arcade: source code available?

2007-11-19 Thread Peter Verswyvelen
I can find the paper, but is the source code for that Space Invaders alike game also available somewhere? Thanks, Peter ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Justin Bailey
On Nov 19, 2007 10:25 AM, brad clawsie [EMAIL PROTECTED] wrote: so far the haskell community has taken the cpan route for most practical libs but i wonder if a batteries included approach might help get some key libraries to a more complete state. in particular, i would like to see support for

Re: [Haskell-cafe] The Yampa Arcade: source code available?

2007-11-19 Thread Stefan Kersten
On 19.11.2007, at 19:54, Peter Verswyvelen wrote: I can find the paper, but is the source code for that Space Invaders alike game also available somewhere? it's included here: http://haskell.org/yampa/afrp-0.4-src.tgz btw, does anybody know what's the current state of affairs with yampa/

Re: [Haskell-cafe] The Yampa Arcade: source code available?

2007-11-19 Thread Don Stewart
sk: On 19.11.2007, at 19:54, Peter Verswyvelen wrote: I can find the paper, but is the source code for that Space Invaders alike game also available somewhere? it's included here: http://haskell.org/yampa/afrp-0.4-src.tgz btw, does anybody know what's the current state of affairs with

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Thomas Hartman
Batteries included, I could take it or leave it. Where I think hackage could really benefit from copying perl strategy is automated testing of *all* packages under hackage darcs, not just blessed packages. If this could be integrated into the buildbot of whatever ghc is under development

[Haskell-cafe] More accessible papers

2007-11-19 Thread Peter Verswyvelen
Most research papers have the same layout: two columns per A4 page. They mostly come as PDF or PS. Although this is standard, it is not really accessible for people with people with bad vision, who prefer larger fonts. When you print this, the fonts are rather small. For those people, a

Re: [Haskell-cafe] More accessible papers

2007-11-19 Thread Neil Mitchell
Hi Peter, Although this is standard, it is not really accessible for people with people with bad vision, who prefer larger fonts. When you print this, the fonts are rather small. For those people, a reflowable PDF would make much more sense, so they can choose how big the fonts are on screen

Re: [Haskell-cafe] Stream fusion for Hackage

2007-11-19 Thread Don Stewart
simonpj: | Will it eventually replace Data.List in GHC? | | That is the plan, yep. But first we need to solve the concatMap problem, no? So far as I know, fold/build has the property that if fusion doesn't happen, no harm is done. But streams risk making the program *worse* if Good

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Andrew Coppin
Justin Bailey wrote: On Nov 19, 2007 10:25 AM, brad clawsie [EMAIL PROTECTED] wrote: so far the haskell community has taken the cpan route for most practical libs but i wonder if a batteries included approach might help get some key libraries to a more complete state. in particular, i would

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Neil Mitchell
Hi - 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 of a library, the author, who is about the least objective person. - Almost all packages seem

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Don Stewart
andrewcoppin: Hackage seems like a nice idea in principle. However, I think in practice too: we had no central lib archive or dependency system, now we have 400 libraries, and a package installer, 10 months later. Until Hackage, there was a strong pressure not to reuse other people's

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Don Stewart
ndmitchell: Hi - 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 of a library, the author, who is about the least objective person. -

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread brad clawsie
The problem is that only one person gets to comment on the quality of a library, the author, who is about the least objective person. i would just like to add that i have had a great deal of success with hackage and find that most libraries support what they say they will support, but often

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Thomas Schilling
On Mon, 2007-11-19 at 12:17 -0800, Don Stewart wrote: andrewcoppin: Hackage seems like a nice idea in principle. However, I think in practice too: we had no central lib archive or dependency system, now we have 400 libraries, and a package installer, 10 months later. Until Hackage,

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Radosław Grzanka
2007/11/19, brad clawsie [EMAIL PROTECTED]: The problem is that only one person gets to comment on the quality of a library, the author, who is about the least objective person. by rolling certain libraries into a base distribution, i was implying that there would be more eyeballs

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

2007-11-19 Thread 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 host it. Would it be appropriate to host on darcs.haskell.org or HackageDB (yet?). Suggestions? 1)

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

2007-11-19 Thread Andrew Coppin
Don Stewart wrote: Just a quick announce: the stream fusion library for lists, that Duncan Coutts, Roman Leshchinskiy and I worked on earlier this year is now available on Hackage as a standalone package: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/stream-fusion-0.1.1 As

[Haskell-cafe] Sillyness in the standard libs.

2007-11-19 Thread Arthur van Leeuwen
LS, here is a puzzle for you: try converting a System.Posix.Types.EpochTime into either a System.Time.CalendarTime or a Data.Time.Clock.UTCTime without going through read . show or a similar detour through strings. The problem comes up when trying to easily nicely display the access,

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Derek Elkins
On Mon, 2007-11-19 at 21:47 +0100, Radosław Grzanka wrote: 2007/11/19, brad clawsie [EMAIL PROTECTED]: The problem is that only one person gets to comment on the quality of a library, the author, who is about the least objective person. by rolling certain libraries into a base

Re: [Haskell-cafe] Properties of monads

2007-11-19 Thread Radosław Grzanka
Hi Benja, Something like the following might feel cleaner, though: maybeT :: Maybe a - MaybeT m a maybeT = MaybeT . return downloadFile :: String - MaybeT IO String downloadFile s = maybeT (parseURI s) = liftIO . httpGet This is even neater. However, I fail to implement this. It does not

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Jeremy Shaw
At Mon, 19 Nov 2007 10:25:40 -0800, brad clawsie wrote: so far the haskell community has taken the cpan route for most practical libs but i wonder if a batteries included approach might help get some key libraries to a more complete state. in particular, i would like to see support for basic

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Henning Thielemann
On Mon, 19 Nov 2007, 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 state of many

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread brad clawsie
whereas today the decision is often directed by what is standard?. With this solution we wouldn't have had the FiniteMap break, we could choose more equally between different data structure collections (say Edison vs. GHC libs), monad libraries, and so on. this is a good point...blessing one

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Andrew Coppin
brad clawsie wrote: in any case, batteries included or not, ghc seems to have reached a point of stability, high performance, and lots of neat fundamental features that it can be left alone for a short time. i would love to see 2008 be the year we direct time and effort to solve filling holes

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

2007-11-19 Thread Don Stewart
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 host it. Would it be appropriate to host on [1]darcs.haskell.org or

Re: [Haskell-cafe] Sillyness in the standard libs.

2007-11-19 Thread Brandon S. Allbery KF8NH
On Nov 19, 2007, at 16:06 , Arthur van Leeuwen wrote: here is a puzzle for you: try converting a System.Posix.Types.EpochTime into either a System.Time.CalendarTime or a Data.Time.Clock.UTCTime without going through read . show or a similar detour through strings. fromEnum and/or toEnum

Re: [Haskell-cafe] Properties of monads

2007-11-19 Thread Radosław Grzanka
2007/11/19, Ryan Ingram [EMAIL PROTECTED]: I am pretty sure that the constructor MaybeT is exactly what you are looking for. newtype MaybeT m a = MaybeT (m (Maybe a)) therefore MaybeT :: m (Maybe a) - MaybeT m a I swear I tried it. I swear.. Why didn't it worked than and it works now??

Re: [Haskell-cafe] Sillyness in the standard libs.

2007-11-19 Thread Henning Thielemann
On Mon, 19 Nov 2007, Brandon S. Allbery KF8NH wrote: On Nov 19, 2007, at 16:06 , Arthur van Leeuwen wrote: here is a puzzle for you: try converting a System.Posix.Types.EpochTime into either a System.Time.CalendarTime or a Data.Time.Clock.UTCTime without going through read . show or

Re: [Haskell-cafe] Sillyness in the standard libs.

2007-11-19 Thread Andrew Coppin
Arthur van Leeuwen wrote: A closely related issue: fromIntegral is in Integral which also requires quotRem. However, the two are semantically quite disjoint. I can *easily* see the semantics of fromIntegral on EpochTime, but not the semantics of quotRem on EpochTime. Having

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Brandon S. Allbery KF8NH
On Nov 19, 2007, at 15:13 , 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 of a library, the author, who is about the

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Brandon S. Allbery KF8NH
On Nov 19, 2007, at 15:47 , Radosław Grzanka wrote: If you look at the stability tag of ghc libraries you will see that a lot of them are marked as provisional (Network.URI for example) or experimental (Control.Monad.Trans). This may not refer to what most people care about; the experimental

[Haskell-cafe] Tetris

2007-11-19 Thread Andrew Coppin
If you were going to implement Tetris in Haskell, how would you do it? (For that matter, has anybody already *done* it? It would probably make a nice example program...) I'm particularly interested to know 1. How exactly would you do the graphical components? (Presumably there's some deep

Re: [Haskell-cafe] More accessible papers

2007-11-19 Thread PR Stanley
Why don't you typeset the whole thing in Latex. That way you'll definitely ensure accessibility. Cheers Paul At 19:43 19/11/2007, you wrote: Most research papers have the same layout: two columns per A4 page. They mostly come as PDF or PS. Although this is standard, it is not really

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Mads Lindstrøm
Brandon S. Allbery KF8NH wrote: On Nov 19, 2007, at 15:13 , 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 of a

Re: [Haskell-cafe] Sillyness in the standard libs.

2007-11-19 Thread Henning Thielemann
On Mon, 19 Nov 2007, Andrew Coppin wrote: Arthur van Leeuwen wrote: A closely related issue: fromIntegral is in Integral which also requires quotRem. However, the two are semantically quite disjoint. I can *easily* see the semantics of fromIntegral on EpochTime, but not the

Re: [Haskell-cafe] Sillyness in the standard libs.

2007-11-19 Thread Brandon S. Allbery KF8NH
On Nov 19, 2007, at 16:50 , Henning Thielemann wrote: On Mon, 19 Nov 2007, Brandon S. Allbery KF8NH wrote: fromEnum and/or toEnum are helpful for this kind of thing, and I am occasionally tempted to bind cast = toEnum . fromEnum because I need it so much. Really? I'd like to know which

Re: [Haskell-cafe] Sillyness in the standard libs.

2007-11-19 Thread Brandon S. Allbery KF8NH
On Nov 19, 2007, at 17:10 , Brandon S. Allbery KF8NH wrote: CTime; POSIX allows (or used to allow) it to be a floating type in order to allow some non-UNIXlikes to represent POSIX times. But given that CTime is Enum, Foreign.C.Types already violates this; so why isn't it Hrm, not

Re: [Haskell-cafe] Tetris

2007-11-19 Thread Don Stewart
andrewcoppin: If you were going to implement Tetris in Haskell, how would you do it? (For that matter, has anybody already *done* it? It would probably make a nice example program...) http://haskell.org/haskellwiki/Applications_and_libraries/Games ASCII tetris

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 host it.

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Henning Thielemann
On Mon, 19 Nov 2007, Brandon S. Allbery KF8NH wrote: On Nov 19, 2007, at 15:47 , Radosław Grzanka wrote: If you look at the stability tag of ghc libraries you will see that a lot of them are marked as provisional (Network.URI for example) or experimental (Control.Monad.Trans). This may

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Andrew Coppin
Neil Mitchell wrote: Hi - 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 of a library, the author, who is about the least objective

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Brandon S. Allbery KF8NH
On Nov 19, 2007, at 17:01 , Mads Lindstrøm wrote: Brandon S. Allbery KF8NH 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 to look at first. It occurred to me that the voting could be

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Andrew Coppin
Don Stewart wrote: andrewcoppin: Hackage seems like a nice idea in principle. However, I think in practice too: we had no central lib archive or dependency system, now we have 400 libraries, and a package installer, 10 months later. Hackage is that new?? - The packages seem to

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Henning Thielemann
On Mon, 19 Nov 2007, Mads [ISO-8859-1] Lindstrøm wrote: It occurred to me that the voting could be implicit. That is, if 10 libraries/programs use library X, then library X gets 10 votes. Kind of like Google PageRank for libraries. It would be good if users could comment verbally. They could

Re: [Haskell-cafe] Tetris

2007-11-19 Thread Sebastian Sylvan
On Nov 19, 2007 9:25 PM, Andrew Coppin [EMAIL PROTECTED] wrote: If you were going to implement Tetris in Haskell, how would you do it? (For that matter, has anybody already *done* it? It would probably make a nice example program...) I'm particularly interested to know 1. How exactly would

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Thomas Hartman
the php documentation has user contributed notes where people can leave sniplets of useful code as comments, eg http://www.php.net/manual/en/introduction.php I think this is a very nice feature. Henning Thielemann [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 11/19/2007 05:21 PM To Haskell

Re: [Haskell-cafe] Tetris

2007-11-19 Thread CW Anderson
To help learn some Haskell, I implemented a pole-balancing video game in Haskell, starting with the code for the S.A.R.A.H. road simulator by Maurício C. Antunes (thanks Maurício) that is included in the Gtk2Hs library demos. It demonstrates how to do the graphics, interact with the user via

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Bjorn Bringert
On Nov 19, 2007, at 23:13 , Henning Thielemann wrote: On Mon, 19 Nov 2007, Brandon S. Allbery KF8NH wrote: On Nov 19, 2007, at 15:47 , Radosław Grzanka wrote: If you look at the stability tag of ghc libraries you will see that a lot of them are marked as provisional (Network.URI for

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread brad clawsie
On Mon, Nov 19, 2007 at 05:27:30PM -0500, Thomas Hartman wrote: the php documentation has user contributed notes where people can leave sniplets of useful code as comments, eg http://www.php.net/manual/en/introduction.php I think this is a very nice feature. yup, for php it gives users a

[Haskell-cafe] user error when using Text.Regex.PCRE

2007-11-19 Thread Olivier Boudry
Hi all, I'm getting a strange user error when working with Data.ByteString.Char8 and Text.Regex.PCRE. Error I get is: CustomerMaster: user error (Text.Regex.PCRE.ByteString died: (ReturnCode 0,Ptr parameter was nullPtr in Text.Regex.PCRE.Wrap.wrapMatch cstr)) The part of the code causing

[Haskell-cafe] Re: Sillyness in the standard libs.

2007-11-19 Thread Aaron Denney
On 2007-11-19, Andrew Coppin [EMAIL PROTECTED] wrote: Arthur van Leeuwen wrote: A closely related issue: fromIntegral is in Integral which also requires quotRem. However, the two are semantically quite disjoint. I can *easily* see the semantics of fromIntegral on EpochTime, but not

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

2007-11-19 Thread Thomas Schilling
On Mon, 2007-11-19 at 20:29 +, Andrew Coppin wrote: Don Stewart wrote: Just a quick announce: the stream fusion library for lists, that Duncan Coutts, Roman Leshchinskiy and I worked on earlier this year is now available on Hackage as a standalone package:

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Thomas Schilling
On Mon, 2007-11-19 at 21:22 +, Andrew Coppin wrote: Where is the correct place for Cabal bugs? This and other questions are explained at .. *drumroll* .. the Cabal Homepage!! -- http://www.haskell.org/cabal/ :) ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] HTTP actions proxy server

2007-11-19 Thread Stefan Kersten
On 16.11.2007, at 13:55, Jim Burton wrote: The docs say Should be of the form http://host:port, host, host:port, or http://host; but none of the variations work. Any ideas where I might find an example of code that does this? this works for me (modulo error handling): simpleHTTP' ::

[Haskell-cafe] Translations and Haskell

2007-11-19 Thread Felipe Lessa
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? I couldn't find anything on some quick searchs on haskell.org, hackage and google. If there aren't any libraries available,

Re: [Haskell-cafe] binary operator modifiers

2007-11-19 Thread Tim Newsham
liftM2 (/) sum length. Anyway, the closest you can get in Haskell is something like this, using the infix expressions of Ken Shan and Dylan Thurstonhttp://www.haskell.org/pipermail/haskell-cafe/2002-July/003215.html Hmm.. that might be decent if you added rules to pretty-print them in

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

2007-11-19 Thread Nicolas Frisby
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 special cases is an inappropriate bandaid. My current opinion: If

Re: [Haskell-cafe] Translations and Haskell

2007-11-19 Thread Jeremy Shaw
At Mon, 19 Nov 2007 23:18:58 -0200, Felipe Lessa wrote: If there aren't any libraries available, are there any suggestions on how to create one? I am not sure if a better way exists already, but here is how I would do it if nothing better exists. Creating a binding to the gettext library

Re: [Haskell-cafe] Translations and Haskell

2007-11-19 Thread Stefan O'Rear
On Mon, Nov 19, 2007 at 05:39:44PM -0800, Jeremy Shaw wrote: You might also allow: i18n (multine ++ string) provided that all the arguments of ++ are string literals. This is because, AFAIK, there is no other way to split a long string across multiple source lines in a portable

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

2007-11-19 Thread Nicolas Frisby
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* 1) The fact that serialisation is fully strict for 32760 bytes but not for 32761 makes the direct application of strictCheck

[Haskell-cafe] How to abort a computation within Continuation Monad?

2007-11-19 Thread Dimitry Golubovsky
Hi, I have been using plain non-monadic CPS for a while in my web-browser related stuff. Now I am tempted to switch from plain CPS to syntactically sweetened monadic style based on Continuation Monad, but I feel stuck with one important issue that I need an advice on. In plain CPS, I may write:

Re: [Haskell-cafe] How to abort a computation within Continuation Monad?

2007-11-19 Thread Derek Elkins
On Tue, 2007-11-20 at 00:18 -0500, Dimitry Golubovsky wrote: Hi, I have been using plain non-monadic CPS for a while in my web-browser related stuff. Now I am tempted to switch from plain CPS to syntactically sweetened monadic style based on Continuation Monad, but I feel stuck with one

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread Bryan O'Sullivan
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 of a library, the author, who is about the least objective person. Not

Re: [Haskell-cafe] expanded standard lib

2007-11-19 Thread david48
On Nov 19, 2007 11:27 PM, Thomas Hartman [EMAIL PROTECTED] wrote: the php documentation has user contributed notes where people can leave sniplets of useful code as comments, eg http://www.php.net/manual/en/introduction.php I think this is a very nice feature. I would love to have this on