Re: [Haskell-cafe] Re: ANNOUNCE: yesod 0.0.0 (web framework)

2010-03-10 Thread Michael Snoyman
On Wed, Mar 10, 2010 at 7:10 AM, Gour g...@gour-nitai.com wrote: On Sun, 7 Mar 2010 21:03:12 -0800 Michael == Michael Snoyman mich...@snoyman.com wrote: Michael * Deployable anywhere (based on WAI) Does it mean one will be able to use it with webservers like Cherokee, nginx...? Right

Re: [Haskell-cafe] Re: ANNOUNCE: yesod 0.0.0 (web framework)

2010-03-10 Thread Michael Snoyman
On Wed, Mar 10, 2010 at 8:00 AM, Gour g...@gour-nitai.com wrote: [...] Michael That said, I intend to port hack-handler-fastcgi to WAI in the Michael not-too-distant future. If anyone needs it sooner, just send Michael me an e-mail, it will probably take very little time to port Michael

Re: [Haskell-cafe] Re: ANNOUNCE: yesod 0.0.0 (web framework)

2010-03-10 Thread Michael Snoyman
On Wed, Mar 10, 2010 at 10:11 AM, Gour g...@gour-nitai.com wrote: [..] Michael I also wouldn't have a use for mod_haskell, but it seems Michael every cool kid on the block has it ;). How do you like other players (Cherokee, nginx,...)? Frankly, I haven't used either of those (though I

Re: [Haskell-cafe] ANNOUNCE: Bravo-0.1.0

2010-03-11 Thread Michael Snoyman
Matthis, Thank you for releasing this library, it looks very intriguing. I've been building web apps using HStringTemplate up until now, and one thing that always irks me is that- while the rest of my program is checked at compile-time- my template results need to be checked manually at runtime.

Re: [Haskell-cafe] #haskell-web, anyone ?

2010-03-14 Thread Michael Snoyman
On the same topic, some of us have started moving web discussions back over to web-devel mailing list. Looks like it's a fun time to be doing web development in Haskell :). Michael On Sun, Mar 14, 2010 at 2:13 PM, Simon Michael si...@joyful.com wrote: We just had a big old web dev discussion

Re: [Haskell-cafe] Are there any web server framework ?

2010-03-16 Thread Michael Snoyman
It's young, but Yesod: http://www.yesodweb.com/code.html Michael On Tue, Mar 16, 2010 at 5:15 PM, zaxis z_a...@163.com wrote: Erlang has yaws (http://yaws.hyber.org/) Scala has lift (http://liftweb.net/) Python has django (http://www.djangoproject.com/) Ruby has rails

Re: [Haskell-cafe] stuck with a sample of programming in haskell

2010-03-16 Thread Michael Snoyman
Hi, You can only use do notation if you actually create an instance of Monad, which for Parser you haven't done. To continue as is, replace the first line with: import Prelude hiding (return, fail, (=)) and the p function with p = item = \x - item = \_ - item = \y - return (x, y) I've

Re: [Haskell-cafe] ANNOUNCE: direct-fastcgi 1.0

2010-03-18 Thread Michael Snoyman
This looks very interesting, I look forward to checking it out. Implementing FastCGI has always seemed too daunting a task to undertake; I salute you. Are you familiar with the wai package? If so, do you believe your package is amenable to either itself adapting the wai, or having a wrapper built

Re: Re[Haskell-cafe] mote invocations in Haskell?

2010-03-23 Thread Michael Snoyman
You could use a webserver and have a RESTful interface, though I'm not sure if that's what you're looking for. On Tue, Mar 23, 2010 at 1:46 PM, Yves Parès limestr...@gmail.com wrote: Hello, Is there a way to perform some kind of remote method invocation in haskell? (Or, remote object, but I

Re: [Haskell-cafe] Bytestrings and [Char]

2010-03-24 Thread Michael Snoyman
I have a very specific StringLike typeclass in the web-encodings package so that I can- for example- to HTML entity encoding on String, (lazy) bytestrings and (lazy) text. Of course, I need to make assumptions about character encoding for the bytestring version. Michael On Wed, Mar 24, 2010 at

Re: [Haskell-cafe] State of the Haskell Web Application Stack

2010-03-24 Thread Michael Snoyman
Hi Ozgun, At the moment, I would say that Happstack is your best bet on a mature option for Haskell web development. There are other systems being developed, but none have been battle-tested as much as Happstack (as far as I know). I know that patch-tag[1] was written with it, for example. That

[Haskell-cafe] Re: new focus for Happstack

2010-04-01 Thread Michael Snoyman
Lots of fun, thanks ;) On Thu, Apr 1, 2010 at 7:31 AM, Jeremy Shaw jer...@n-heptane.com wrote: Hello, I've been thinking a lot recently about the direction and future of the Happstack project. These days we hear a lot about technologies to allow servers to push data, such as Comet, Ajax

[Haskell-cafe] ANNOUNCE: hamlet 0.0.0

2010-04-20 Thread Michael Snoyman
Hi all, I'd like to announce the first release of Hamlet[1], a templating system which is fully compile-time checked. Templates are parsed via quasi-quoting, giving you greater confidence in the validity of your templates. The syntax is inspired by Haml[2]; however, it is most definitely its own

[Haskell-cafe] Re: ANNOUNCE: happstack-hamlet: compile-time HTML templates for the Haskell application server stack

2010-05-04 Thread Michael Snoyman
://groups.google.com/group/happs Big thanks to Michael Snoyman for writing Hamlet! Hamlet homepage: http://docs.yesodweb.com/hamlet/ Happstack homepage: http://www.happstack.com/ happy hacking! - jeremy p.s. Reply-to is set to haskell-cafe -- You received this message because you are subscribed

[Haskell-cafe] Re: ANNOUNCE: happstack 0.5.0

2010-05-04 Thread Michael Snoyman
Hey Jeremy, I see below that you included the experimental WAI support. I'm excited to try it out, but I don't see it in happstack-server (maybe I'm blind). Could you point it out? Thanks, Michael On Mon, May 3, 2010 at 8:57 PM, Jeremy Shaw jer...@n-heptane.com wrote: (Note: Reply-to is set

Re: [Haskell-cafe] Re: ANNOUNCE: happstack 0.5.0

2010-05-05 Thread Michael Snoyman
On Wed, May 5, 2010 at 2:41 PM, Jeremy Shaw jer...@n-heptane.com wrote: On May 4, 2010, at 11:20 PM, Michael Snoyman wrote: Hey Jeremy, I see below that you included the experimental WAI support. I'm excited to try it out, but I don't see it in happstack-server (maybe I'm blind). Could

[Haskell-cafe] Database connection pool

2010-05-05 Thread Michael Snoyman
Hi all, I would like to pool my database connections in an application I'm writing, and so far haven't found any prior art on the subject (besides this[1]). I was wondering if: * There's a package somewhere that does this * Others have implemented it and have suggestions * There's some big

Re: [Haskell-cafe] Database connection pool

2010-05-06 Thread Michael Snoyman
On Thu, May 6, 2010 at 9:13 AM, Bryan O'Sullivan b...@serpentine.com wrote: On Wed, May 5, 2010 at 10:51 PM, Michael Snoyman mich...@snoyman.comwrote: * When a connection is released, is goes to the end of the pool, so connections get used evenly (not sure if this actually matters in practice

[Haskell-cafe] ANNOUNCE: wai-handler-fastcgi 0.0.0

2010-05-06 Thread Michael Snoyman
Hi all, I finally scratched an itch I've had for a while, and put together wai-handler-fastcgi. It is built on top of Dan Knapp's wonderful direct-fastcgi[1] package, so it is free from dependencies on C libraries. This package allows WAI[2] applications to be run on a FastCGI-supporting server.

Re: [Haskell-cafe] Database connection pool

2010-05-07 Thread Michael Snoyman
On Fri, May 7, 2010 at 1:02 AM, Bas van Dijk v.dijk@gmail.com wrote: On Thu, May 6, 2010 at 11:54 PM, Bas van Dijk v.dijk@gmail.com wrote: On Thu, May 6, 2010 at 7:48 PM, Bas van Dijk v.dijk@gmail.com wrote: On Thu, May 6, 2010 at 3:24 PM, Michael Snoyman mich...@snoyman.com

[Haskell-cafe] ANNOUNCE: hamlet 0.2.0

2010-05-08 Thread Michael Snoyman
Hi all, I'm happy to announce the second major release of Hamlet[1]. Hamlet is a HTML templating library which works via quasi-quoting, giving you compile-time assurances, type safety and very efficient HTML generation. I wrote a blog post[2] describing the changes in this version of Hamlet. The

[Haskell-cafe] ANNOUNCE: yaml, data-object-yaml and data-object-json 0.3.0

2010-05-13 Thread Michael Snoyman
Hi all, We're happy to announce the newest release of the three above packages. Notable changes include: * Anton Ageev wrote support for anchors and aliases into both the yaml and data-object-yaml package. * Anton also wrote support in data-object-yaml for merge keys. * The yaml package is now

Re: [Haskell-cafe] [ANNOUNCE] First Public Release of the Snap Framework

2010-05-22 Thread Michael Snoyman
Congratulations on the release. I was interested in seeing how this would work as a WAI handler, and came across some questions: * I noticed that the Method datatype is restricted to a set of specific methods. Seeing as the list of methods can be expanded[1], why was this chosen? * The

Re: [Haskell-cafe] [ANNOUNCE] First Public Release of the Snap Framework

2010-05-22 Thread Michael Snoyman
On Sat, May 22, 2010 at 11:15 PM, Gregory Collins g...@gregorycollins.netwrote: Michael Snoyman mich...@snoyman.com writes: Congratulations on the release. I was interested in seeing how this would work as a WAI handler, and came across some questions: * I noticed that the Method

Re: [Haskell-cafe] [ANNOUNCE] First Public Release of the Snap Framework

2010-05-22 Thread Michael Snoyman
On Sun, May 23, 2010 at 1:36 AM, Gregory Collins g...@gregorycollins.netwrote: Michael Snoyman mich...@snoyman.com writes: If the POST body has content-type application/x-www-form-urlencoded we parse it for you and put the fields in the parameter mapping. If this isn't your

[Haskell-cafe] ANNOUNCE: yesod 0.2.0

2010-05-24 Thread Michael Snoyman
Hi all, I'm very happy to announce the release of yesod 0.2.0. Yesod is a Haskell web framework for type-safe, RESTful web applications. I won't bore you all with the full release announcement here, please see the blog[1]. Installing yesod should be as simple as: cabal update cabal install

Re: [Haskell-cafe] Google Summer of Code: BlazeHTML RFC

2010-05-27 Thread Michael Snoyman
Two comments: * The exclamation point seems good enough for attributes. I copied that for Hamlet as well. * If you're standardizing on UTF-8, why not support bytestrings? I'm aware that a user could shoot him/herself in the foot by passing in non-UTF8 data, but I would imagine the performance

Re: [Haskell-cafe] Google Summer of Code: BlazeHTML RFC

2010-05-27 Thread Michael Snoyman
On Thu, May 27, 2010 at 11:16 AM, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: On 27 May 2010 17:55, Michael Snoyman mich...@snoyman.com wrote: Two comments: * The exclamation point seems good enough for attributes. I copied that for Hamlet as well. * If you're standardizing on UTF

Re: [Haskell-cafe] Google Summer of Code: BlazeHTML RFC

2010-05-27 Thread Michael Snoyman
On Thu, May 27, 2010 at 11:28 AM, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: On 27 May 2010 18:23, Michael Snoyman mich...@snoyman.com wrote: On Thu, May 27, 2010 at 11:16 AM, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: On 27 May 2010 17:55, Michael Snoyman mich

Re: [Haskell-cafe] Google Summer of Code: BlazeHTML RFC

2010-05-27 Thread Michael Snoyman
On Thu, May 27, 2010 at 11:40 AM, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: On 27 May 2010 18:33, Michael Snoyman mich...@snoyman.com wrote: I don't do any string concatenation (look closely), I was very careful to avoid it. I tried with lazy text as well: it was slower. This isn't

Re: [Haskell-cafe] Google Summer of Code: BlazeHTML RFC

2010-05-27 Thread Michael Snoyman
On Thu, May 27, 2010 at 12:57 PM, Johan Tibell johan.tib...@gmail.comwrote: On Thu, May 27, 2010 at 10:23 AM, Michael Snoyman mich...@snoyman.comwrote: On Thu, May 27, 2010 at 11:16 AM, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: Wow, I find it rather surprising that String out

[Haskell-cafe] Turn off verbose template haskell output

2010-05-28 Thread Michael Snoyman
Hi all, Is there a GHC flag to turn off all of the Loading package... messages from Template Haskell? Thanks, Michael ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] name of this monadic combinator?

2010-05-30 Thread Michael Snoyman
On Sun, May 30, 2010 at 11:35 AM, Michael Vanier mvanie...@gmail.comwrote: I stumbled across this monadic combinator: mcombine :: Monad m = (a - a - a) - m a - m a - m a mcombine f mx my = do x - mx y - my return (f x y) I used it to chain the outputs of two Parsec String

Re: [Haskell-cafe] ANNOUNCE: MonadCatchIO-foreign

2010-05-30 Thread Michael Snoyman
On Mon, May 31, 2010 at 3:10 AM, Antoine Latter aslat...@gmail.com wrote: Hello Haskell, I'd like to announce a very small library in two flavors. The problem I'm trying to solve is that we have some capabilities for writing functions which are polymorphic over monad but still use IO

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-16 Thread Michael Snoyman
On Wed, Jun 16, 2010 at 8:51 AM, Ivan Miljenovic ivan.miljeno...@gmail.comwrote: On 16 June 2010 15:45, Roman Cheplyaka r...@ro-che.info wrote: * aditya siram aditya.si...@gmail.com [2010-06-15 19:47:37-0400] Hi all, Haskell is a great language and in a lot of ways it still hasn't found a

Re: [Haskell-cafe] What is Haskell unsuitable for?

2010-06-17 Thread Michael Snoyman
On Fri, Jun 18, 2010 at 5:03 AM, Erik de Castro Lopo mle...@mega-nerd.commle%2...@mega-nerd.com wrote: Andrew Coppin wrote: aditya siram wrote: No argument there - I'm even afraid to stick it on my resume. At least Clojure can be snuck into the JVM without people noticing - Haskell,

[Haskell-cafe] MonadCatchIO-transformers and ContT

2010-06-21 Thread Michael Snoyman
Hi cafe, I ran into a segfault while working on some database code. I eventually traced it back to a double-finalizing of a statement (read: freeing memory twice), which ultimately led back to switching my code to use the ContT monad transformer. I was able to isolate this down to a minimal test

Re: [Haskell-cafe] MonadCatchIO-transformers and ContT

2010-06-21 Thread Michael Snoyman
block. This causes a successful completion of bracket_ (first release), followed by the error, which triggers the catch block which then runs the final actions (second release) and rethrows the error. Does that sound possible to anyone else? Thanks, Neil. On 21/06/10 09:39, Michael

Re: [Haskell-cafe] TH instance code.

2010-06-22 Thread Michael Snoyman
On Tue, Jun 22, 2010 at 6:24 PM, Andy Stewart lazycat.mana...@gmail.comwrote: Hi all, I have below duplicate code, but i don't know how to use TH instance code. -- duplicate code start -- instance Variable PageType where toVariant

[Haskell-cafe] Unknown symbol: __fixunsdfdi

2010-06-24 Thread Michael Snoyman
Hi all, I'm trying to get some code to compile on Windows, and have run into an unknown symbol. Has anyone else run into an unknown __fixunsdfdi? I'm using GHC 6.12.3. I'm trying to use my persistent-sqlite package. To reproduce, cabal install persistent-sqlite and then try running the example

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

[Haskell-cafe] Call for comments: neither package

2010-06-28 Thread Michael Snoyman
Hi all, I'll admit, the original idea for this package was something to place in ACME ;). However, it's goal is to solve a real problem: the lack of good instances on the Either type. As a brief summary, Either has no Applicative or Monad instances in the base library, has 2 reasonable

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

2010-06-28 Thread Michael Snoyman
on a package which pulled in both mtl and tranformers. Maybe that's just superstition - I haven't tried it. Antoine On Jun 28, 2010 5:51 PM, Michael Snoyman mich...@snoyman.com wrote: Hi all, I'll admit, the original idea for this package was something to place in ACME ;). However, it's goal

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

2010-06-28 Thread Michael Snoyman
On Tue, Jun 29, 2010 at 8:24 AM, Ivan Miljenovic ivan.miljeno...@gmail.comwrote: On 29 June 2010 15:20, Michael Snoyman mich...@snoyman.com wrote: As far as I know, the only issue with depending on both is the conflicting orphan Monad instance for Either. Can anyone either confirm or deny

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

[Haskell-cafe] Error handling package

2009-10-18 Thread Michael Snoyman
While working on the next release of data-object, I wanted to represent some operations that might fail. The typical candidates were: 1) Maybe 2) Either 3) Monad Monad is always iffy because of the often times poorly defined fail. Maybe doesn't provide any means of reporting what the problem

Re: [Haskell-cafe] Error handling package

2009-10-18 Thread Michael Snoyman
(Sorry, accidently took off cafe.) On Mon, Oct 19, 2009 at 12:44 AM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Mon, 19 Oct 2009, Michael Snoyman wrote: Does the explicit-exception package provide what you need? http://hackage.haskell.org/package/explicit-exception I

Re: [Haskell-cafe] Error handling package

2009-10-19 Thread Michael Snoyman
not a serious worry. I'd love to try out the package right now, but with hackage being down I can't get the dependencies yet ;). I'll try it out as soon as I can. On 19/10/2009, at 01:00, Michael Snoyman wrote: (Sorry, accidently took off cafe.) On Mon, Oct 19, 2009 at 12:44 AM, Henning

Re: [Haskell-cafe] Error handling package

2009-10-20 Thread Michael Snoyman
On Tue, Oct 20, 2009 at 11:04 AM, Nicolas Pouillard nicolas.pouill...@gmail.com wrote: On Sun, Oct 18, 2009 at 9:45 PM, Michael Snoyman mich...@snoyman.com wrote: While working on the next release of data-object, I wanted to represent some operations that might fail. The typical

Re: [Haskell-cafe] Error handling package

2009-10-20 Thread Michael Snoyman
On Tue, Oct 20, 2009 at 5:17 PM, Nicolas Pouillard nicolas.pouill...@gmail.com wrote: On Tue, Oct 20, 2009 at 3:12 PM, Michael Snoyman mich...@snoyman.com wrote: On Tue, Oct 20, 2009 at 11:04 AM, Nicolas Pouillard nicolas.pouill...@gmail.com wrote: On Sun, Oct 18, 2009 at 9:45 PM

Re: [Haskell-cafe] Error handling package

2009-10-20 Thread Michael Snoyman
-monad-exception/ The control-monad-exception library provides the building blocks for * Explicitly Typed exceptions (checked or not) * which are composable * and even provide stack traces (experimental feature) On 19/10/2009, at 01:00, Michael Snoyman wrote: (Sorry, accidently took off

[Haskell-cafe] ANN: attempt-0.0.0

2009-10-25 Thread Michael Snoyman
Hello, I'm happy to announce the first release of the attempt package[1]. It is meant to solve the how should I represent a failure issue. It is based on extensible exceptions and provides a monad, a monad transformers and helper functions to replace many standard, unsafe functions like head.

Re: [Haskell-cafe] ANN: attempt-0.0.0

2009-10-26 Thread Michael Snoyman
On Mon, Oct 26, 2009 at 6:19 PM, Darrin Thompson darri...@gmail.com wrote: On Sun, Oct 25, 2009 at 4:51 PM, Michael Snoyman mich...@snoyman.com wrote: Comments are most welcome. I would like this to be a suitable replacement for the ubiquitous Maybe, (Either String) and ad-hoc Result data

Re: [Haskell-cafe] Re: [Haskell] ANNOUNCE: control-monad-exception 0.5 with monadic call traces

2009-11-07 Thread Michael Snoyman
On Sat, Nov 7, 2009 at 9:54 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Sat, 7 Nov 2009, Jose Iborra wrote: Sorry for the confusion, I never meant that c-m-e can show stack traces for asynchronous exceptions. It can not. My post was not related in any way to

[Haskell-cafe] ANNOUNCE: control-monad-failure and safe-failure

2009-11-16 Thread Michael Snoyman
them adopt the MonadFailure interface. We have also created a wiki page explaining our reasons for following this path in: http://www.haskellwiki.org/Failure Thanks, Jose Iborra, Nicolas Pouillard and Michael Snoyman ___ Haskell-Cafe mailing list

[Haskell-cafe] ANNOUNCE: attempt

2009-11-16 Thread Michael Snoyman
stack traces. As usual, this release is available on hackage[4]. API stability cannot be guaranteed with this release as well, but we're getting much closer to hitting the mark. All the best, Michael Snoyman, Nicolas Pouillard 1. http://hackage.haskell.org/package/control-monad-failure 2. http

[Haskell-cafe] Re: ANNOUNCE: attempt

2009-11-16 Thread Michael Snoyman
Correction: that's version 0.0.2 that was just release. On Mon, Nov 16, 2009 at 10:28 PM, Michael Snoyman mich...@snoyman.comwrote: We'd like to announce the second release (version 0.0.1) of the attempt package, for handling of failures. This release has been made to work with the new

[Haskell-cafe] Existential type question

2009-11-22 Thread Michael Snoyman
Hi all, I've come across some code I just can't figure out how to write appropriately. Below is a silly example that demonstrates what I'm trying to do. I don't really have the appropriate vocabulary to describe the issue, so I'll let the code speak for itself. In particular, I'm trying to

Re: [Haskell-cafe] FastCGI under Windows

2009-11-26 Thread Michael Snoyman
You could try calling the program as CGI instead of FastCGI to try and pin down where the error is coming from. Also, you could run a FastCGI script in a different language (Perl?) and see if that works. I can't say, however, that I've even used FastCGI on Windows. Michael On Thu, Nov 26, 2009

[Haskell-cafe] cabal-install binary for FreeBSD

2009-11-28 Thread Michael Snoyman
Hi all, I'm trying out NearlyFreeSpeech.net for hosting my Haskell apps. They use FreeBSD 7.2, but I can't get cabal-install to compile since it runs out of memory during the link phase. So far I haven't had trouble manually installing packages, but it would be nice to just do cabal install...

Re: [Haskell-cafe] cabal-install binary for FreeBSD

2009-11-28 Thread Michael Snoyman
On Sat, Nov 28, 2009 at 7:56 PM, Duncan Coutts duncan.cou...@googlemail.com wrote: On Sat, 2009-11-28 at 19:39 +0200, Michael Snoyman wrote: Hi all, I'm trying out NearlyFreeSpeech.net for hosting my Haskell apps. They use FreeBSD 7.2, but I can't get cabal-install to compile since

Re: [Haskell-cafe] New Hackage category: Error Handling

2009-12-05 Thread Michael Snoyman
Careful Gregory, you've hit a hot-button issue: you have dared to refer to exceptions as errors! For the record, I find this pedanticism misplaced, as the line between the two is rather blurry. Nonetheless, for control-monad-failure and attempt, we purposely refer to the whole slew of things not

Re: [Haskell-cafe] New Hackage category: Error Handling

2009-12-05 Thread Michael Snoyman
On Sat, Dec 5, 2009 at 7:41 PM, Ross Paterson r...@soi.city.ac.uk wrote: On Sat, Dec 05, 2009 at 05:52:11PM +0200, Michael Snoyman wrote: For the record, I find this pedanticism misplaced, ... I think you'll find that's pedantry. Hoped someone would comment exactly

[Haskell-cafe] Avoiding undecidables

2009-12-05 Thread Michael Snoyman
Hi all, Well, I've got two problems which both want to be solved with undecidable and overlapping instances. Obviously, I'd like to try and avoid them. For the record, the problems have to do with the control-monad-failure and convertible packages. The code below *should* make clear what I'm

Re: [Haskell-cafe] Avoiding undecidables

2009-12-05 Thread Michael Snoyman
On Sat, Dec 5, 2009 at 10:33 PM, José Iborra pepeibo...@gmail.com wrote: On Dec 5, 2009, at 6:58 PM, Michael Snoyman wrote: Hi all, Well, I've got two problems which both want to be solved with undecidable and overlapping instances. Obviously, I'd like to try and avoid them

Re: [Haskell-cafe] New Hackage category: Error Handling

2009-12-05 Thread Michael Snoyman
On Sun, Dec 6, 2009 at 12:17 AM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Sat, 5 Dec 2009, Michael Snoyman wrote: On Sat, Dec 5, 2009 at 7:41 PM, Ross Paterson r...@soi.city.ac.uk wrote: On Sat, Dec 05, 2009 at 05:52:11PM +0200, Michael Snoyman wrote

Re: [Haskell-cafe] New Hackage category: Error Handling

2009-12-05 Thread Michael Snoyman
On Sun, Dec 6, 2009 at 12:55 AM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Sun, 6 Dec 2009, Michael Snoyman wrote: I think there are plenty of examples like web servers. A text editor with plugins? I don't want to lose three hours worth of work just because some plugin

[Haskell-cafe] When are undecidables ok?

2009-12-05 Thread Michael Snoyman
I know this is basically a rewording of a previous e-mail, but I realized this is the question I *really* wanted to ask. We have this language extension UndecidableInstances (not to mention OverlappingInstances), which seem to divide the Haskell camp into two factions: * Hey, GHC said to turn on

Re: [Haskell-cafe] When are undecidables ok?

2009-12-05 Thread Michael Snoyman
On Sun, Dec 6, 2009 at 7:36 AM, Luke Palmer lrpal...@gmail.com wrote: On Sat, Dec 5, 2009 at 10:04 PM, Michael Snoyman mich...@snoyman.com wrote: I know this is basically a rewording of a previous e-mail, but I realized this is the question I *really* wanted to ask. We have

[Haskell-cafe] ANNOUNCE: new installment of failure framework

2009-12-06 Thread Michael Snoyman
-exception-0.8.0 http://hackage.haskell.org/package/control-monad-exception-mtl-0.8.0 http://hackage.haskell.org/package/control-monad-exception-monadsfd-0.8.0 http://hackage.haskell.org/package/control-monad-exception-monadstf-0.8.0 Michael Snoyman, Pepe Iborra, Nicolas Pouillard

Re: [Haskell-cafe] Re: New Hackage category: Error Handling

2009-12-06 Thread Michael Snoyman
On Mon, Dec 7, 2009 at 5:30 AM, Ben Franksen ben.frank...@online.de wrote: Michael Snoyman wrote: On Sun, Dec 6, 2009 at 12:55 AM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Sun, 6 Dec 2009, Michael Snoyman wrote: I think there are plenty of examples like web servers

Re: [Haskell-cafe] New Hackage category: Error Handling

2009-12-06 Thread Michael Snoyman
On Mon, Dec 7, 2009 at 8:40 AM, Alexander Dunlap alexander.dun...@gmail.com wrote: On Sat, Dec 5, 2009 at 3:00 PM, Michael Snoyman mich...@snoyman.com wrote: On Sun, Dec 6, 2009 at 12:55 AM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Sun, 6 Dec 2009, Michael Snoyman

Re: [Haskell-cafe] Re: New Hackage category: Error Handling

2009-12-07 Thread Michael Snoyman
On Mon, Dec 7, 2009 at 2:13 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: Michael Snoyman schrieb: On Mon, Dec 7, 2009 at 5:30 AM, Ben Franksen ben.frank...@online.de mailto:ben.frank...@online.de wrote: Michael Snoyman wrote: On the other hand, what's so

[Haskell-cafe] Re: New Hackage category: Error Handling

2009-12-07 Thread Michael Snoyman
On Mon, Dec 7, 2009 at 9:07 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Mon, 7 Dec 2009, Michael Snoyman wrote: The only opinion I've stated so far is that it's ridiculous to constantly demand that people follow your definition of error vs exception, since the line

[Haskell-cafe] Re: New Hackage category: Error Handling

2009-12-07 Thread Michael Snoyman
On Mon, Dec 7, 2009 at 9:53 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Mon, 7 Dec 2009, Michael Snoyman wrote: I actually *did* read your article, and don't know what you are referring to. If this is true, sorry, I didn't had the impression. I also think

Re: [Haskell-cafe] Re: New Hackage category: Error Handling

2009-12-07 Thread Michael Snoyman
On Tue, Dec 8, 2009 at 1:25 AM, Ben Franksen ben.frank...@online.de wrote: Michael Snoyman wrote: On Mon, Dec 7, 2009 at 9:53 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Mon, 7 Dec 2009, Michael Snoyman wrote: I also think that in an earlier mail I answered

Re: [Haskell-cafe] Re: New Hackage category: Error Handling

2009-12-07 Thread Michael Snoyman
On Tue, Dec 8, 2009 at 7:40 AM, Michael Snoyman mich...@snoyman.com wrote: On Tue, Dec 8, 2009 at 1:25 AM, Ben Franksen ben.frank...@online.dewrote: Michael Snoyman wrote: On Mon, Dec 7, 2009 at 9:53 PM, Henning Thielemann lemm...@henning-thielemann.de wrote: On Mon, 7 Dec 2009

Re: [Haskell-cafe] ANNOUNCE: new installment of failure framework

2009-12-08 Thread Michael Snoyman
On Tue, Dec 8, 2009 at 11:51 AM, Gregory Crosswhite gcr...@phys.washington.edu wrote: Michael, Although I like the idea of improving the way that failures are handled in Haskell, I am having trouble seeing any reason to use your framework. If a function is always assumed to succeed given

Re: [Haskell-cafe] How to use Control.Failure?

2009-12-19 Thread Michael Snoyman
On Sat, Dec 19, 2009 at 4:46 PM, ntupel ntu...@googlemail.com wrote: I have looked at the recently released Control.Failure library but I admit, I couldn't understand it completely. So given the example below, how would Control.Failure help me here? Thanks, nt -- Theirs (other library

Re: [Haskell-cafe] Use of the Try typeclass

2009-12-30 Thread Michael Snoyman
Edward, What version of the packages are you using? Can you give the output of: ghc-pkg list|grep failure Michael On Thu, Dec 31, 2009 at 7:11 AM, Edward Z. Yang ezy...@mit.edu wrote: Excerpts from Alexander Dunlap's message of Thu Dec 31 00:06:58 -0500 2009: Why are you importing both

Re: [Haskell-cafe] Use of the Try typeclass

2009-12-31 Thread Michael Snoyman
I think you need to run cabal update On Thu, Dec 31, 2009 at 8:54 AM, Edward Z. Yang ezy...@mit.edu wrote: Excerpts from Michael Snoyman's message of Thu Dec 31 00:43:52 -0500 2009: What version of the packages are you using? Can you give the output of: ghc-pkg list|grep failure Sure

Re: [Haskell-cafe] Lambda's

2009-12-31 Thread Michael Snoyman
Some of us prefer not to look at that kind of material. I'd appreciate if, in the future, you could either refrain from sending such links or making it clear that they contain objectionable content. Thanks, Michael On Thu, Dec 31, 2009 at 1:15 AM, Henk-Jan van Tuyl hjgt...@chello.nlwrote: I

Re: [Haskell-cafe] Lambda's

2009-12-31 Thread Michael Snoyman
On Thu, Dec 31, 2009 at 11:57 AM, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: 2009/12/31 Michael Snoyman mich...@snoyman.com: Some of us prefer not to look at that kind of material. I'd appreciate if, in the future, you could either refrain from sending such links or making

[Haskell-cafe] GHC 6.12.1 FreeBSD binaries

2010-01-05 Thread Michael Snoyman
Does anyone know what the status is of the FreeBSD binaries for the most recent GHC release? In particular, I'm looking or FreeBSD 7.2 binaries. I tried building from source, but it says I don't have iconv library. I'm not enough of a FreeBSD guy to track this one down. Thanks, Michael

Re: [Haskell-cafe] Design question, HTML for GUIs?

2010-01-10 Thread Michael Snoyman
I wrote a package to turn Hack applications into standalone apps using Webkit. The code is available at http://github.com/snoyberg/hack-handler-webkit. However, it's currently Linux-only. However, if I was going to write a desktop app based on an HTML GUI, I would bundle Webkit like this. It fixes

[Haskell-cafe] Web application interface

2010-01-13 Thread Michael Snoyman
Hi, I recently read (again) the wiki page on a web application interface[1] for Haskell. It seems like this basically works out to Hack[2], but using an enumerator instead of lazy bytestring in the response type. Is anyone working on implementing this? If not, I would like to create the package,

Re: [Haskell-cafe] what is *hack*?

2010-01-13 Thread Michael Snoyman
Günther, Hack is a layer between a web application and a web server. It allows you to write a web application once and have it communicate with the server in different ways simply by swapping the handler. For example, I have applications that I test on my local system using

Re: [Haskell-cafe] Re: what is *hack*?

2010-01-13 Thread Michael Snoyman
idea then. Günther Am 13.01.10 15:48, schrieb Michael Snoyman: Günther, Hack is a layer between a web application and a web server. It allows you to write a web application once and have it communicate with the server in different ways simply by swapping the handler

Re: [Haskell-cafe] Web application interface

2010-01-14 Thread Michael Snoyman
On Thu, Jan 14, 2010 at 12:50 PM, Alberto G. Corona agocor...@gmail.comwrote: 2010/1/14 Jinjing Wang nfjinj...@gmail.com Hyena is especially tuned for streaming and that's exactly what hack can't do (in practice). Isn't possible to stream an (almost) infinite bytestring trough hack?. I

Re: [Haskell-cafe] Web application interface

2010-01-14 Thread Michael Snoyman
On Thu, Jan 14, 2010 at 1:20 PM, Alberto G. Corona agocor...@gmail.comwrote: 2010/1/14 Michael Snoyman mich...@snoyman.com Well, for one thing, you'd need to use lazy IO to achieve your goal, which has some safety issues. As things get more and more complex, the requirements of lazy IO

Re: [Haskell-cafe] Web application interface

2010-01-14 Thread Michael Snoyman
On Thu, Jan 14, 2010 at 1:58 PM, Alberto G. Corona agocor...@gmail.comwrote: 2010/1/14 Michael Snoyman mich...@snoyman.com On Thu, Jan 14, 2010 at 1:20 PM, Alberto G. Corona agocor...@gmail.comwrote: 2010/1/14 Michael Snoyman mich...@snoyman.com Well, for one thing, you'd need

Re: [Haskell-cafe] Web application interface

2010-01-14 Thread Michael Snoyman
). I think it would be great if we could get Happstack involved in the WAI project. Michael On Jan 13, 2010, at 8:46 AM, Michael Snoyman wrote: Hi, I recently read (again) the wiki page on a web application interface[1] for Haskell. It seems like this basically works out to Hack[2

Re: [Haskell-cafe] Web application interface

2010-01-16 Thread Michael Snoyman
Absolutely; the goals I have are minimal dependencies and no warnings for compilation ;). On Sat, Jan 16, 2010 at 9:35 PM, Nicolas Pouillard nicolas.pouill...@gmail.com wrote: Excerpts from Michael Snoyman's message of Wed Jan 13 15:46:12 +0100 2010: Hi, I recently read (again) the wiki

Re: [Haskell-cafe] PROPOSAL: Web application interface

2010-01-18 Thread Michael Snoyman
Mark, thanks for the response, it's very well thought out. Let me state two things first to explain some of my design decisions. Firstly, I'm shooting for lowest-common-denominator here. Right now, I see that as the intersection between the CGI backend and a standalone server backend; I think

  1   2   3   4   5   6   7   >