Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-18 Thread Michael Snoyman
On Mon, Oct 18, 2010 at 8:47 PM, Daniel Peebles pumpkin...@gmail.com wrote: Hi all, Might it be worthwhile to take the elected superusers on haskellers.com and let them police the skills list? It's become rather messy, with overly broad terms like Mathematics in it, as well as overly specific

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-18 Thread Michael Snoyman
On Mon, Oct 18, 2010 at 11:01 PM, Antoine Latter aslat...@gmail.com wrote: On Mon, Oct 18, 2010 at 3:34 PM, Michael Snoyman mich...@snoyman.com wrote: On Mon, Oct 18, 2010 at 8:47 PM, Daniel Peebles pumpkin...@gmail.com wrote: Hi all, Might it be worthwhile to take the elected superusers

Re: [Haskell-cafe] Haskellers.com skills list moderation?

2010-10-18 Thread Michael Snoyman
On Tue, Oct 19, 2010 at 12:16 AM, Antoine Latter aslat...@gmail.com wrote: On Mon, Oct 18, 2010 at 4:08 PM, Michael Snoyman mich...@snoyman.com wrote: On Mon, Oct 18, 2010 at 11:01 PM, Antoine Latter aslat...@gmail.com wrote: On Mon, Oct 18, 2010 at 3:34 PM, Michael Snoyman mich...@snoyman.com

[Haskell-cafe] Should Yesod.Mail be a separate package?

2010-10-17 Thread Michael Snoyman
Hey all, I wrote a simple email module in Yesod[1] that handles such things as multipart messages and Base64 encoding. It's still missing some features (multipart/alternative, for instance), but it can be useful for throwing together emails. It's currently part of the yesod package, but I'm going

Re: [Haskell-cafe] Re: Should Yesod.Mail be a separate package?

2010-10-17 Thread Michael Snoyman
OK, I've put together a new repository on github[1]. I've modified the original code from Yesod to now include support for multipart/alternative, and to only create a multipart when there really are multiple parts. I've done some simple tests, and it seems to work just fine. Now a question for

Re: [Haskell-cafe] Bulletproof resource management

2010-10-16 Thread Michael Snoyman
On Fri, Oct 15, 2010 at 8:17 PM, Antoine Latter aslat...@gmail.com wrote: On Fri, Oct 15, 2010 at 11:09 AM, Florian Weimer f...@deneb.enyo.de wrote: * Henning Thielemann: Some open/close pairs have corresponding 'with' functions, that are implemented using Exception.bracket. You can also use

[Haskell-cafe] Re: MonadCatchIO, finally and the error monad

2010-10-15 Thread Michael Snoyman
On Fri, Oct 15, 2010 at 9:35 AM, o...@okmij.org wrote: Michael Snoyman wrote: I have a recommendation of how to fix this: the MonadCatchIO typeclass should be extended to include finally, onException and everything else. We can provide default definitions which will work for most monads

[Haskell-cafe] Re: MonadCatchIO, finally and the error monad

2010-10-15 Thread Michael Snoyman
On Fri, Oct 15, 2010 at 10:22 AM, o...@okmij.org wrote: Michael Snoyman wrote: I would prefer if the test read as: test33 = fmap (== Left throwError) $ test3c (throwError throwError ::  ErrorT String IO String) Which never in fact returns True. Or, more to the point, the test is never

Re: [Haskell-cafe] All binary strings of a given length

2010-10-15 Thread Michael Snoyman
Not the most efficient, but easy to understand: genbin 0 = [] genbin 1 = [0, 1] genbin i = map ('0' :) x ++ map ('1' :) x where x = genbin $ i - 1 On Fri, Oct 15, 2010 at 2:21 PM, rgowka1 rgow...@gmail.com wrote: Hi - How can I generate all binary string of a given length? The type

Re: [Haskell-cafe] Haskellers.com recent changes (and I need some volunteers)

2010-10-14 Thread Michael Snoyman
On Thu, Oct 14, 2010 at 10:56 AM, Bas van Dijk v.dijk@gmail.com wrote: On Thu, Oct 14, 2010 at 7:00 AM, Michael Snoyman mich...@snoyman.com wrote: I would definitely like to see the option of adding your handle to your profile. Even if it is a commercially oriented site. Otherwise I won't

Re: [Haskell-cafe] Haskellers.com recent changes (and I need some volunteers)

2010-10-14 Thread Michael Snoyman
On Thu, Oct 14, 2010 at 11:05 AM, Bas van Dijk v.dijk@gmail.com wrote: On Thu, Oct 14, 2010 at 11:00 AM, Michael Snoyman mich...@snoyman.com wrote: On Thu, Oct 14, 2010 at 10:56 AM, Bas van Dijk v.dijk@gmail.com wrote: On Thu, Oct 14, 2010 at 7:00 AM, Michael Snoyman mich...@snoyman.com

Re: [Haskell-cafe] Haskellers.com recent changes (and I need some volunteers)

2010-10-14 Thread Michael Snoyman
On Thu, Oct 14, 2010 at 11:14 AM, Bas van Dijk v.dijk@gmail.com wrote: On Thu, Oct 14, 2010 at 11:06 AM, Michael Snoyman mich...@snoyman.com wrote: Great! Is there also a RSS feed? Yes, http://www.haskellers.com/feed/news/. Is it useful to people to put up a feedburner subscribe button

Re: [Haskell-cafe] Haskellers.com recent changes (and I need some volunteers)

2010-10-14 Thread Michael Snoyman
On Thu, Oct 14, 2010 at 11:15 AM, Henning Thielemann schlepp...@henning-thielemann.de wrote: Michael Snoyman schrieb: As a side point, I'm wondering how I should let everyone know about the new features on the site. Emailing the cafe each time would be stupid (and spam); posting to my twitter

[Haskell-cafe] MonadCatchIO, finally and the error monad

2010-10-14 Thread Michael Snoyman
Hey all, In case anyone noticed, Haskellers occassionally dies with a Pool exhausted exception. I've traced this to a bug in Yesod, which in turn is a bug in the neither package, which I believe is a flawed design in the MonadCatchIO-transformers package. Here are my thoughts on this and what I

[Haskell-cafe] Re: MonadCatchIO, finally and the error monad

2010-10-14 Thread Michael Snoyman
of bracket, bracket_ and finally, we can ensure that if there is any special monad underneath our ErrorT, the cleanup function will still run. Michael On Thu, Oct 14, 2010 at 12:01 PM, Michael Snoyman mich...@snoyman.com wrote: Hey all, In case anyone noticed, Haskellers occassionally dies with a Pool

Re: [Haskell-cafe] Re: MonadCatchIO, finally and the error monad

2010-10-14 Thread Michael Snoyman
On Thu, Oct 14, 2010 at 4:28 PM, Antoine Latter aslat...@gmail.com wrote: On Thu, Oct 14, 2010 at 7:15 AM, Michael Snoyman mich...@snoyman.com wrote: By the way, here is how I would implement the ErrorT MonadCatchIO instance: instance (MonadCatchIO m, Error e) = MonadCatchIO (ErrorT e m) where

Re: [Haskell-cafe] Re: MonadCatchIO, finally and the error monad

2010-10-14 Thread Michael Snoyman
On Thu, Oct 14, 2010 at 8:10 PM, Antoine Latter aslat...@gmail.com wrote: On Thu, Oct 14, 2010 at 10:20 AM, Michael Snoyman mich...@snoyman.com wrote: Did you have particular reasons why you thought the resources would not be freed correctly Antoine? I'd love any insight you have on this. I

Re: [Haskell-cafe] Re: MonadCatchIO, finally and the error monad

2010-10-14 Thread Michael Snoyman
On Thu, Oct 14, 2010 at 11:13 PM, Antoine Latter aslat...@gmail.com wrote: On Thu, Oct 14, 2010 at 1:28 PM, Michael Snoyman mich...@snoyman.com wrote: I thought a bit about this, and I believe the only extra primitive we need is one of bracket, bracket_ or finally. I also noticed

Re: [Haskell-cafe] Haskellers.com recent changes (and I need some volunteers)

2010-10-13 Thread Michael Snoyman
On Thu, Oct 14, 2010 at 1:54 AM, Jeremy Shaw jer...@n-heptane.com wrote: On Tue, Oct 12, 2010 at 8:03 AM, Brandon S Allbery KF8NH allb...@ece.cmu.edu wrote: On the one hand, a professional organization will prefer to have real names, real pictures, etc.  On the other, if you want to be a

[Haskell-cafe] Fuzzy time deltas

2010-10-13 Thread Michael Snoyman
Hey all, Is there a library that supports fuzzy time deltas? For example, given two UTCTimes (or something like that) it could produce: 43 seconds 13 minutes 17 hours 4 days 8 months I want to use it for the news feature on Haskellers. It's not that hard to write, just wondering if it's already

[Haskell-cafe] Haskellers.com survey

2010-10-12 Thread Michael Snoyman
Hey all, Guessing popular consensus based on what people write on the mailing list is not exactly statistically sound. So instead, I've put up some of our open questions- along with some other questions I've wanted to ask- in a survey. If you are interested in the future of Haskellers, I

Re: [Haskell-cafe] Haskellers.com recent changes (and I need some volunteers)

2010-10-11 Thread Michael Snoyman
On Mon, Oct 11, 2010 at 9:06 AM, Nicolas Pouillard nicolas.pouill...@gmail.com wrote: On Mon, 11 Oct 2010 05:50:32 +0200, Michael Snoyman mich...@snoyman.com wrote: Sorry to everyone for not getting back so quickly, I kept getting errors from postfix when I tried sending mail to the cafe

Re: [Haskell-cafe] Haskellers.com recent changes (and I need some volunteers)

2010-10-11 Thread Michael Snoyman
On Mon, Oct 11, 2010 at 2:44 PM, Magnus Therning mag...@therning.org wrote: On Mon, Oct 11, 2010 at 13:14, John Lato jwl...@gmail.com wrote: From: Michael Snoyman mich...@snoyman.com Also, now 10 random profiles will be displayed on the homepage. Only verified users will be displayed here

Re: [Haskell-cafe] ANNOUNCE: tls, native TLS/SSL protocol implementation

2010-10-10 Thread Michael Snoyman
On Fri, Oct 8, 2010 at 10:26 AM, Vincent Hanquez t...@snarc.org wrote: On Fri, Oct 08, 2010 at 08:47:39AM +0200, Michael Snoyman wrote: By the way, a native zlib implementation would definitely go on my wishlist. Any takers? ;) Me too ! that's the only thing that prevented me from adding

Re: [Haskell-cafe] Re: ANNOUNCE: tls, native TLS/SSL protocol implementation

2010-10-10 Thread Michael Snoyman
On Fri, Oct 8, 2010 at 3:29 PM, Maciej Piechotka uzytkown...@gmail.com wrote: I had in mind something like: import Data.ByteString import Data.Iteratee clientEnum :: MonadIO m           = params           - Enumerator ByteString m a           - Enumerator ByteString m a clientEnum

Re: [Haskell-cafe] Web development work

2010-10-10 Thread Michael Snoyman
On Sun, Oct 10, 2010 at 8:00 AM, James Sanders jimmyjaz...@gmail.com wrote: I was bored so I threw together this logo tonight http://james-sanders.com/d/haskellers.png. If you like it I could clean it up a bit. Overall, I like the current logo for two reasons: it adds color/depth, and it

[Haskell-cafe] Haskellers.com recent changes (and I need some volunteers)

2010-10-10 Thread Michael Snoyman
Hey all, Haskellers became popular a lot faster than I'd anticipated. This has prompted me to need to make some changes that I was only planning on implementing later on. As usual, all points are up for discussion (this is intended to be a community-run site after all). * Pagination on homepage.

Re: [Haskell-cafe] Re: ANNOUNCE: tls, native TLS/SSL protocol implementation

2010-10-10 Thread Michael Snoyman
On Sun, Oct 10, 2010 at 3:09 PM, Maciej Piechotka uzytkown...@gmail.com wrote: On 10/10/10, Michael Snoyman mich...@snoyman.com wrote: On Fri, Oct 8, 2010 at 3:29 PM, Maciej Piechotka uzytkown...@gmail.com wrote: I had in mind something like: import Data.ByteString import Data.Iteratee

Re: [Haskell-cafe] Haskellers.com recent changes (and I need some volunteers)

2010-10-10 Thread Michael Snoyman
are on the second page, and I doubt many people wrote Haskell programs before us.   -- Lennart (iPhone) On Oct 10, 2010, at 13:06, Michael Snoyman mich...@snoyman.com wrote: Hey all, Haskellers became popular a lot faster than I'd anticipated. This has prompted me to need to make some changes

Re: [Haskell-cafe] Haskellers.com recent changes (and I need some volunteers)

2010-10-10 Thread Michael Snoyman
On Mon, Oct 11, 2010 at 5:59 AM, Mark Lentczner ma...@glyphic.com wrote: On Oct 10, 2010, at 10:56 AM, Michael Snoyman wrote: I'm worried about spam accounts being featured on the homepage. Real Haskeller is not meant to be exclusive, it's a minimal level of oversight by the admins. A more

Re: [Haskell-cafe] ANNOUNCE: tls, native TLS/SSL protocol implementation

2010-10-08 Thread Michael Snoyman
On Fri, Oct 8, 2010 at 8:08 AM, Christopher Done chrisd...@googlemail.com wrote: On 8 October 2010 07:44, C K Kashyap ckkash...@gmail.com wrote: Does native mean Haskell only - without FFI? I think not Haskell would be piping to a separate non-Haskell process or calling by FFI to another

Re: [Haskell-cafe] Re: ANNOUNCE: tls, native TLS/SSL protocol implementation

2010-10-08 Thread Michael Snoyman
On Fri, Oct 8, 2010 at 1:59 PM, Maciej Piechotka uzytkown...@gmail.com wrote: On Wed, 2010-10-06 at 22:26 +0100, Vincent Hanquez wrote: Hi haskellers, I'ld like to announce the tls package [1][2], which is a native implementation of the TLS protocol, client and server.  It's currently

Re: [Haskell-cafe] Haskellers.com profiles: advice requested

2010-10-07 Thread Michael Snoyman
On Wed, Oct 6, 2010 at 8:14 PM, Brent Yorgey byor...@seas.upenn.edu wrote: One (slightly off-topic) question: at the top of the site it says the meeting place for professional Haskell programmers.  Is this supposed to be geared towards Haskell programmers who get paid (or want to get paid) to

Re: [Haskell-cafe] Haskellers.com profiles: advice requested

2010-10-07 Thread Michael Snoyman
On Thu, Oct 7, 2010 at 12:42 AM, Bas van Dijk v.dijk@gmail.com wrote: Feature suggestion:  Allow users to provide their location and show it (and the aggregate of all Haskellers) in a (Google) map. (I Just uploaded my initial profile) Bas I like it, I'll get on it soon. Maybe I can use

Re: [Haskell-cafe] Haskellers.com profiles: advice requested

2010-10-07 Thread Michael Snoyman
On Thu, Oct 7, 2010 at 8:41 AM, Vo Minh Thu not...@gmail.com wrote: 2010/10/7 Michael Snoyman mich...@snoyman.com: On Wed, Oct 6, 2010 at 8:14 PM, Brent Yorgey byor...@seas.upenn.edu wrote: One (slightly off-topic) question: at the top of the site it says the meeting place for professional

Re: [Haskell-cafe] HTML library with DOM?

2010-10-07 Thread Michael Snoyman
2010/10/7 Gregory Collins g...@gregorycollins.net: Edward Z. Yang ezy...@mit.edu writes: Excerpts from Gregory Collins's message of Wed Oct 06 19:44:44 -0400 2010: I've got the month of October off, and one of the things I've been planning on working on is a compliant HTML5 parser for Haskell

[Haskell-cafe] Haskellers.com profiles: advice requested

2010-10-06 Thread Michael Snoyman
Hi all, After finally getting OpenID 2 support worked out, I've now put up the Haskellers.com website[1]. Not all features are implemented yet, but the basics are in. One of the most important features is going to be the user profiles, and I wanted some community input on the kind of stuff they'd

Re: [Haskell-cafe] Haskellers.com profiles: advice requested

2010-10-06 Thread Michael Snoyman
On Wed, Oct 6, 2010 at 11:28 AM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: On 6 October 2010 20:11, Michael Snoyman mich...@snoyman.com wrote: Hi all, After finally getting OpenID 2 support worked out, I've now put up the Haskellers.com website[1]. For me at least, when I try

Re: [Haskell-cafe] Haskellers.com profiles: advice requested

2010-10-06 Thread Michael Snoyman
On Wed, Oct 6, 2010 at 11:49 AM, Serguey Zefirov sergu...@gmail.com wrote: 2010/10/6 Michael Snoyman mich...@snoyman.com: Hi all, After finally getting OpenID 2 support worked out, I've now put up the Haskellers.com website[1]. Not all features are implemented yet, but the basics

Re: [Haskell-cafe] Re: Haskell web development entries on the Wiki

2010-10-06 Thread Michael Snoyman
On Wed, Oct 6, 2010 at 2:16 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Wed, 6 Oct 2010, Christopher Done wrote: On 6 October 2010 12:47, Henning Thielemann thunderb...@henning-thielemann.de wrote: I for instance use http-shed and mohws all the time. They do what they

Re: [Haskell-cafe] Haskellers.com profiles: advice requested

2010-10-06 Thread Michael Snoyman
On Wed, Oct 6, 2010 at 11:49 AM, Serguey Zefirov sergu...@gmail.com wrote: 2010/10/6 Michael Snoyman mich...@snoyman.com: Hi all, After finally getting OpenID 2 support worked out, I've now put up the Haskellers.com website[1]. Not all features are implemented yet, but the basics

Re: [Haskell-cafe] Haskellers.com profiles: advice requested

2010-10-06 Thread Michael Snoyman
On Wed, Oct 6, 2010 at 11:28 AM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: On 6 October 2010 20:11, Michael Snoyman mich...@snoyman.com wrote: Hi all, After finally getting OpenID 2 support worked out, I've now put up the Haskellers.com website[1]. For me at least, when I try

Re: [Haskell-cafe] ANNOUNCE: tls, native TLS/SSL protocol implementation

2010-10-06 Thread Michael Snoyman
On Thu, Oct 7, 2010 at 12:29 AM, Christopher Done chrisd...@googlemail.com wrote: On 6 October 2010 23:26, Vincent Hanquez t...@snarc.org wrote: I'ld like to announce the tls package [1][2], which is a native implementation of the TLS protocol, client and server.  It's currently mostly

[Haskell-cafe] Re: Haskell web development entries on the Wiki

2010-10-03 Thread Michael Snoyman
On Sun, Oct 3, 2010 at 11:59 AM, Christopher Done chrisd...@googlemail.com wrote: On 3 October 2010 06:51, Michael Snoyman mich...@snoyman.com wrote: * Does pass.net still exist anywhere? Same for parallel web. I couldn't find any references to pass.net. http://www.haskell.org/haskellwiki

[Haskell-cafe] Re: Haskell web development entries on the Wiki

2010-10-03 Thread Michael Snoyman
On Sun, Oct 3, 2010 at 12:20 PM, Christopher Done chrisd...@googlemail.com wrote: On 3 October 2010 12:10, Michael Snoyman mich...@snoyman.com wrote: I would actually do the opposite: we can put the libraries/frameworks that we are sure *are* active into the Active section and put everything

[Haskell-cafe] Re: Haskell web development entries on the Wiki

2010-10-03 Thread Michael Snoyman
On Sun, Oct 3, 2010 at 5:33 PM, Christopher Done chrisd...@googlemail.com wrote: So I went through the Applications_and_libraries/Web_programming page and pulled out any remaining goodness from it into pages under the Web/ umbrella and then set it up as a redirect to Web/ I made an infobox

[Haskell-cafe] Re: Haskell web development entries on the Wiki

2010-10-02 Thread Michael Snoyman
I understand the advantages to splitting into multiple pages, but on the other hand it *does* make it more difficult to locate information. My guess is a good search function on the wiki will make that point moot. Overall, looks like you've done a great job, thanks! A few minor comments: * Should

[Haskell-cafe] Re: Haskell web development entries on the Wiki

2010-10-02 Thread Michael Snoyman
On Sat, Oct 2, 2010 at 10:40 PM, Christopher Done chrisd...@googlemail.com wrote: On 2 October 2010 22:13, Michael Snoyman mich...@snoyman.com wrote: I understand the advantages to splitting into multiple pages, but on the other hand it *does* make it more difficult to locate information

Re: [Haskell-cafe] Inverse of HaskellDB

2010-09-30 Thread Michael Snoyman
On Thu, Sep 30, 2010 at 4:35 PM, Felipe Lessa felipe.le...@gmail.com wrote: On Wed, Sep 29, 2010 at 7:21 AM, Michael Snoyman mich...@snoyman.com wrote: I think this approach is not possible without involving some fairly ugly unsafeInterleaveIO/unsafePerformIO calls. A simple example using

Re: [Haskell-cafe] Inverse of HaskellDB

2010-09-29 Thread Michael Snoyman
I think this approach is not possible without involving some fairly ugly unsafeInterleaveIO/unsafePerformIO calls. A simple example using a common web programming example: support I have a multi-user blog site, where each user can have multiple entries. I would model this using standard Haskell

Re: [Haskell-cafe] Web application framework comparison?

2010-09-28 Thread Michael Snoyman
On Tue, Sep 28, 2010 at 12:46 PM, Christopher Done chrisd...@googlemail.com wrote: Hmm. Maybe we should sort this out. It's incomplete. The Web category is sporadic: http://www.haskell.org/haskellwiki/Category:Web Supposing we made a Web/Foo namespace and got some proper hierarchy. Of

Re: [Haskell-cafe] Web application framework comparison?

2010-09-28 Thread Michael Snoyman
On Tue, Sep 28, 2010 at 2:03 PM, Christopher Done chrisd...@googlemail.com wrote: On 28 September 2010 13:15, Michael Snoyman mich...@snoyman.com wrote: +1. I did the rewrite of the /Web wiki page to try to make it more accessible. If you have a better format and want to move some

Re: [Haskell-cafe] Web application framework comparison?

2010-09-28 Thread Michael Snoyman
On Tue, Sep 28, 2010 at 2:33 PM, Christopher Done chrisd...@googlemail.com wrote: On 28 September 2010 14:06, Michael Snoyman mich...@snoyman.com wrote: I *do* really like having the dates there, but the problem is that someone has to actually update them. It would be nice if that could

Re: [Haskell-cafe] Polymorphic record field?

2010-09-26 Thread Michael Snoyman
How about: data MyStruct = forall a. MyTypeClass a = MyStruct {myField :: a} I haven't actually run that through the compiler, but it should work. For a real life example of this approach, look at SomeException[1]. Michael [1]

Re: [Haskell-cafe] Re: Polymorphic record field?

2010-09-26 Thread Michael Snoyman
:46, Michael Snoyman wrote: data MyStruct = forall a. MyTypeClass a = MyStruct {myField :: a} Note that that requires {-# LANGUAGE ExistentialQuantification #-} ___ Haskell-Cafe mailing list haskell-c...@haskell.orghttp://www.haskell.org

[Haskell-cafe] WANTED: Haskell web developer for two Yesod projects

2010-09-26 Thread Michael Snoyman
Hi all, I have been working on two projects for a client, but will not be able to continue on them. I am currently looking for someone interested in some freelance work maintaining and adding features to two Yesod web applications. Please contact me if interested. Michael

[Haskell-cafe] ANNOUNCE: http-enumerator 0.0.1

2010-09-23 Thread Michael Snoyman
Hi all, After I made the 0.0.0 release of http-enumerator, Vincent Hanquez informed me of his wonderful tls package[1]. I've just release version 0.0.1 of the http-enumerator package which will use the tls package by default for establishing SSL connections. If you still want to use the OpenSSL

Re: [Haskell-cafe] ANNOUNCE: http-enumerator 0.0.0

2010-09-22 Thread Michael Snoyman
On Wed, Sep 22, 2010 at 12:22 PM, C K Kashyap ckkash...@gmail.com wrote: Hey Michael, I'd like to announce the first release of http-enumerator[1], an HTTP client package with support for HTTPS connections. This release is very experimental; bug reports and API feedback are very welcome.

[Haskell-cafe] ANNOUNCE: http-enumerator 0.0.0

2010-09-21 Thread Michael Snoyman
Hi all, I'd like to announce the first release of http-enumerator[1], an HTTP client package with support for HTTPS connections. This release is very experimental; bug reports and API feedback are very welcome. In addition to providing built-in HTTPS support, this package also attempts to

Re: [Haskell-cafe] Re: Unified Haskell login

2010-09-20 Thread Michael Snoyman
On Mon, Sep 20, 2010 at 2:06 PM, Maciej Piechotka uzytkown...@gmail.com wrote: On Sun, 2010-09-19 at 17:12 +0200, Michael Snoyman wrote: Let me respond to this directly since a number of people have brought this up: Due to spam reasons we can't trust the email given via an OpenID provider

[Haskell-cafe] Re: Unified Haskell login

2010-09-19 Thread Michael Snoyman
AM, Michael Snoyman mich...@snoyman.com wrote: Hi cafe, Let me preface this by stating that this is purposely a half-baked idea, a straw man if you will. I'd like to hear what the community thinks about this. I mentioned yesterday that I was planning on building haskellers.com. The first

Re: [Haskell-cafe] Unified Haskell login

2010-09-19 Thread Michael Snoyman
. And no, we can't use it to get a verified email address. Michael On Sun, Sep 19, 2010 at 4:54 PM, Tim Matthews tim.matthe...@gmail.com wrote: On Fri, Sep 17, 2010 at 6:47 PM, Michael Snoyman mich...@snoyman.com wrote: * OpenID. Fixes the extra password problem, but doesn't give us any extra

Re: [Haskell-cafe] Web development work

2010-09-18 Thread Michael Snoyman
to happstack.com who do not know about haskellers.com and are concerned that it would be hard to find developers. Obviously, I can just provide a link -- but an API would be nice. - jeremy On Sep 16, 2010, at 7:35 AM, Michael Snoyman wrote: On Thu, Sep 16, 2010 at 10:26 AM, Andrew Coppin andrewcop

Re: [Haskell-cafe] Web development work

2010-09-18 Thread Michael Snoyman
On Sat, Sep 18, 2010 at 11:47 PM, Jeremy Shaw jer...@n-heptane.com wrote: A RESTful API with JSON results sounds perfect. I will be surprised if the API useful for 3rd party sites happens to map on to the URL structure used by the main site. But if that works, all the better :) Of course, if

[Haskell-cafe] Unified Haskell login

2010-09-17 Thread Michael Snoyman
Hi cafe, Let me preface this by stating that this is purposely a half-baked idea, a straw man if you will. I'd like to hear what the community thinks about this. I mentioned yesterday that I was planning on building haskellers.com. The first technicality I considered was how login should work.

Re: [Haskell-cafe] Web development work

2010-09-17 Thread Michael Snoyman
: On Thu, Sep 16, 2010 at 10:26 AM, Andrew Coppin andrewcop...@btinternet.com wrote:  On 16/09/2010 08:52 AM, Michael Snoyman wrote: future it would be beneficial to the community to have this information centralized on a website. I think it would be useful to have some basic skills

[Haskell-cafe] Web development work

2010-09-16 Thread Michael Snoyman
Hi all, Often times when trying to pitch Haskell to potential clients the concern is the lack of qualified developers willing to take on projects. As I'm sure many of you are familiar with, clients prefer not to be locked in to a single programmer: an errant bus can significantly reduce the value

Re: [Haskell-cafe] Web development work

2010-09-16 Thread Michael Snoyman
On Thu, Sep 16, 2010 at 10:26 AM, Andrew Coppin andrewcop...@btinternet.com wrote:  On 16/09/2010 08:52 AM, Michael Snoyman wrote: future it would be beneficial to the community to have this information centralized on a website. I think it would be useful to have some basic skills

Re: [Haskell-cafe] Re: ANNOUNCE: enumerator, an alternative iteratee package

2010-08-24 Thread Michael Snoyman
On Tue, Aug 24, 2010 at 7:16 PM, Gregory Collins g...@gregorycollins.netwrote: John Lato jwl...@gmail.com writes: Oleg included the error state to enable short-circuiting of computation, and I guess everyone just left it in. Recently I've been wondering if it should be removed, though,

Re: [Haskell] Re: [Haskell-cafe] ANNOUNCE: enumerator, an alternative iteratee package

2010-08-23 Thread Michael Snoyman
It's not released yet, but persistent 0.2 is going to be using enumerator. I personally don't mind SomeException as a hard-coded error type, but go ahead and do whatever you think is best for the API. Michael On Tue, Aug 24, 2010 at 5:47 AM, John Millikin jmilli...@gmail.com wrote: After

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-18 Thread Michael Snoyman
(web site for IT) www.sohu.com(web site like yahoo) www.sina.com (web site like yahoo) -- Andrew On Wed, Aug 18, 2010 at 11:40 AM, Michael Snoyman mich...@snoyman.comwrote: Well, I'm not certain if it counts as a typical Chinese website, but here

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-18 Thread Michael Snoyman
On Wed, Aug 18, 2010 at 2:39 PM, Johan Tibell johan.tib...@gmail.comwrote: On Wed, Aug 18, 2010 at 2:12 AM, John Meacham j...@repetae.net wrote: ranty thing to follow That said, there is never a reason to use UTF-16, it is a vestigial remanent from the brief period when it was thought 16

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-18 Thread Michael Snoyman
On Wed, Aug 18, 2010 at 6:24 PM, Johan Tibell johan.tib...@gmail.comwrote: Hi Michael, On Wed, Aug 18, 2010 at 4:04 PM, Michael Snoyman mich...@snoyman.comwrote: Here's my response to the two points: * I haven't written a patch showing that Data.Text would be faster using UTF-8 because

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-18 Thread Michael Snoyman
On Wed, Aug 18, 2010 at 11:58 PM, Johan Tibell johan.tib...@gmail.comwrote: As for blaze I'm not sure exactly how it deals with UTF-8 input. I tried to browse through the repo but could find that input ByteStrings are actually validated anywhere. If they're not it's a big generous to say that

Re: [Haskell-cafe] ANNOUNCE: enumerator, an alternative iteratee package

2010-08-18 Thread Michael Snoyman
John, This package looks very promising. I used iteratee for the yaml package, but I had many of the concerns that you have mentioned below. Version 0.2 of persistent is going to have some form of an enumerator interface for getting the results of a query, and I eventually decided that iteratee

Re: [Haskell-cafe] ANNOUNCE: enumerator, an alternative iteratee package

2010-08-18 Thread Michael Snoyman
k Iteratee $ return $ Yield x EOF becomes yield x EOF On Wed, Aug 18, 2010 at 22:24, Michael Snoyman mich...@snoyman.com wrote: John, This package looks very promising. I used iteratee for the yaml package, but I had many of the concerns that you have mentioned below. Version 0.2

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Michael Snoyman
On Tue, Aug 17, 2010 at 10:08 AM, Ketil Malde ke...@malde.org wrote: Benedikt Huber benj...@gmx.net writes: Despite of all this, I think the performance of the text package is very promising, and hope it will improve further! I agree, Data.Text is great. Unfortunately, its internal use

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Michael Snoyman
On Tue, Aug 17, 2010 at 1:50 PM, Yitzchak Gale g...@sefer.org wrote: Ketil Malde wrote: I haven't benchmarked it, but I'm fairly sure that, if you try to fit a 3Gbyte file (the Human genome, say¹), into a computer with 4Gbytes of RAM, UTF-16 will be slower than UTF-8... I don't think the

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Michael Snoyman
On Tue, Aug 17, 2010 at 2:20 PM, Ivan Lazar Miljenovic ivan.miljeno...@gmail.com wrote: Michael Snoyman mich...@snoyman.com writes: I don't think *anyone* is asserting that UTF-16 is a common encoding for files anywhere, *ahem* http://en.wikipedia.org/wiki/UTF-16/UCS-2

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Michael Snoyman
On Tue, Aug 17, 2010 at 3:23 PM, Yitzchak Gale g...@sefer.org wrote: Michael Snoyman wrote: Regarding the data: you haven't actually quoted any statistics about the prevalence of CJK data True, I haven't seen any - except for Google, which I don't believe is accurate. I would like to see

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-17 Thread Michael Snoyman
://zh.wikipedia.org/zh-cn/. It is the wikipedia for Chinese. -Andrew On Tue, Aug 17, 2010 at 7:00 PM, Michael Snoyman mich...@snoyman.comwrote: On Tue, Aug 17, 2010 at 1:50 PM, Yitzchak Gale g...@sefer.org wrote: Ketil Malde wrote: I haven't benchmarked it, but I'm fairly sure that, if you

Re: [Haskell-cafe] Re: String vs ByteString

2010-08-14 Thread Michael Snoyman
On Sun, Aug 15, 2010 at 8:39 AM, Edward Z. Yang ezy...@mit.edu wrote: Excerpts from John Millikin's message of Sun Aug 15 01:32:51 -0400 2010: Also, despite the name, ByteString and Text are for separate purposes. ByteString is an efficient [Word8], Text is an efficient [Char] -- use

Re: [Haskell-cafe] String vs ByteString

2010-08-13 Thread Michael Snoyman
Just import the ByteString module qualified. In other words: import qualified Data.ByteString as S or for lazy bytestrings: import qualified Data.ByteString.Lazy as L Cheers, Michael On Fri, Aug 13, 2010 at 2:32 PM, Erik de Castro Lopo mle...@mega-nerd.commle%2...@mega-nerd.com wrote: Hi

Re: [Haskell-cafe] String vs ByteString

2010-08-13 Thread Michael Snoyman
On Fri, Aug 13, 2010 at 2:42 PM, Johan Tibell johan.tib...@gmail.comwrote: Hi Erik, On Fri, Aug 13, 2010 at 1:32 PM, Erik de Castro Lopo mle...@mega-nerd.commle%2...@mega-nerd.com wrote: Since the files are large I'm using ByteString, but that leads me to wonder what is the best way to

Re: [Haskell-cafe] Re: [web-devel] statically compiled css

2010-08-10 Thread Michael Snoyman
On Mon, Aug 9, 2010 at 4:14 PM, Liam O'Connor lia...@cse.unsw.edu.auwrote: @Michael: Have you seen the JSMacro package on hackage? I think it might be a better fit as it adds some nice syntactic goodies to JS in addition to variable interpolation. I assume you're referring to JMacro,

Re: [Haskell-cafe] Re: [web-devel] statically compiled css

2010-08-09 Thread Michael Snoyman
OK, I declare myself officially unable to make a decision on this one: there's just too many good options ;). I beseech the community to aid me in my plight, by taking a survey on the names available[1]. Michael [1]

Re: [Haskell-cafe] Re: [web-devel] statically compiled css

2010-08-08 Thread Michael Snoyman
post[1]. Michael [1] http://www.snoyman.com/blog/entry/typesafe-runtime-hamlet/ On Fri, Aug 6, 2010 at 1:25 PM, Michael Snoyman mich...@snoyman.com wrote: On Fri, Aug 6, 2010 at 12:28 PM, Benedict Eastaugh ionf...@gmail.comwrote: On 6 August 2010 09:19, Michael Snoyman mich...@snoyman.com

Re: [Haskell-cafe] Re: [web-devel] statically compiled css

2010-08-08 Thread Michael Snoyman
On Sun, Aug 8, 2010 at 1:03 PM, Tim Matthews tim.matthe...@gmail.comwrote: On Sun, Aug 8, 2010 at 9:20 PM, Michael Snoyman mich...@snoyman.comwrote: Quick update: I'm including the Stylish code in the hamlet package now, and renaming it to Camlet (CSS-hamlet). I'm also including something

Re: [Haskell-cafe] Re: [web-devel] statically compiled css

2010-08-06 Thread Michael Snoyman
On Thu, Aug 5, 2010 at 3:41 PM, Tim Matthews tim.matthe...@gmail.comwrote: On Thu, Aug 5, 2010 at 11:33 PM, Mark Bradley barkmad...@gmail.comwrote: but CSS type checking might be possible within hamlet. I have often wondered OK haml implemented now what about sass. Michael Snoyman what

Re: [Haskell-cafe] Re: [web-devel] statically compiled css

2010-08-06 Thread Michael Snoyman
On Fri, Aug 6, 2010 at 12:28 PM, Benedict Eastaugh ionf...@gmail.comwrote: On 6 August 2010 09:19, Michael Snoyman mich...@snoyman.com wrote: After looking into sass a little bit, I've decided I like it ;). I see the following benefits of implementing something sass-like in Haskell via

Re: [Haskell-cafe] Re: [web-devel] statically compiled css

2010-08-05 Thread Michael Snoyman
On Thu, Aug 5, 2010 at 3:41 PM, Tim Matthews tim.matthe...@gmail.comwrote: On Thu, Aug 5, 2010 at 11:33 PM, Mark Bradley barkmad...@gmail.comwrote: but CSS type checking might be possible within hamlet. I have often wondered OK haml implemented now what about sass. Michael Snoyman what

Re: [Haskell-cafe] Re: [web-devel] statically compiled css

2010-08-05 Thread Michael Snoyman
On Thu, Aug 5, 2010 at 3:51 PM, Felipe Lessa felipe.le...@gmail.com wrote: On Thu, Aug 5, 2010 at 9:41 AM, Tim Matthews tim.matthe...@gmail.com wrote: I have often wondered OK haml implemented now what about sass. Michael Snoyman what is your opinions on sass? Would a sass inspired syntax

Re: [Haskell-cafe] Re: recommendation for (best) sqlite3 bindings

2010-07-24 Thread Michael Snoyman
! On Wed, Jul 21, 2010 at 2:10 AM, Michael Snoyman mich...@snoyman.com wrote: On Wed, Jul 21, 2010 at 8:59 AM, Gour g...@gour-nitai.com wrote: On Wed, 21 Jul 2010 08:06:49 +0300 Michael == Michael Snoyman mich...@snoyman.com wrote: Michael For the sqlite backend for persistent, I

Re: [Haskell-cafe] Re: recommendation for (best) sqlite3 bindings

2010-07-21 Thread Michael Snoyman
On Wed, Jul 21, 2010 at 8:59 AM, Gour g...@gour-nitai.com wrote: On Wed, 21 Jul 2010 08:06:49 +0300 Michael == Michael Snoyman mich...@snoyman.com wrote: Michael For the sqlite backend for persistent, I took direct-sqlite Michael and modified it slightly. I have a long history of using

Re: [Haskell-cafe] Merge hsql and HDBC -- there can only be one!

2010-07-20 Thread Michael Snoyman
On Wed, Jul 21, 2010 at 12:20 AM, John Goerzen jgoer...@complete.orgwrote: On 07/07/2010 03:22 PM, Don Stewart wrote: And you have to be wary about the license of HDBC (LGPL) if you want to use the package in software you redistribute (though this is rarely the case for database apps, I'm

Re: [Haskell-cafe] recommendation for (best) sqlite3 bindings

2010-07-20 Thread Michael Snoyman
On Wed, Jul 21, 2010 at 7:54 AM, Gour g...@gour-nitai.com wrote: Hello! We are looking for recommendation which Haskell bindings for sqlite3 to use for destkop GUI app where we want, among other things to store *.png and/or *.jpg images. (Yeah, I know about the hint to store iamges in the

Re: [Haskell-cafe] Merge hsql and HDBC -- there can only be one!

2010-07-07 Thread Michael Snoyman
FWIW, +1. Sorry for not speaking up sooner, I just don't have much to add: of the three, I've only used HDBC. Michael On Wed, Jul 7, 2010 at 8:44 PM, Christopher Done chrisd...@googlemail.comwrote: I did try Takusen with PostgreSQL and it worked perfectly for me, too. The only reason I'm

Re: [Haskell-cafe] Merge hsql and HDBC -- there can only be one!

2010-07-07 Thread Michael Snoyman
On Wed, Jul 7, 2010 at 9:46 PM, Jonathan Daugherty drcyg...@gmail.comwrote: Anyway, the point remains, we need a single goto database library. Though the lack of response to this thread makes me think no one particularly thinks this is a problem. This is an interesting problem. For my

Re: [Haskell-cafe] Call for comments: neither package

2010-06-29 Thread Michael Snoyman
On Tue, Jun 29, 2010 at 10:18 AM, Stephen Tetley stephen.tet...@gmail.comwrote: Hi Michael If you going to the trouble of constructing a sum type (obliged to be 2 parameter) expressly to play well with the favourite single parameter classes e.g. Functor/ Applicative / Monad [*], maybe it is

Re: [Haskell-cafe] MonadCatchIO and bracket.

2010-06-28 Thread Michael Snoyman
On Mon, Jun 28, 2010 at 10:02 PM, Carl Howells chowell...@gmail.com wrote: While working this weekend on the Snap web framework, I ran into a problem. Snap implements MonadCatchIO, so I thought I could just use bracket to handle resource acquisition/release in a safe manner. Imagine my

<    1   2   3   4   5   6   7   >