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

2010-07-24 Thread Michael Snoyman
e using my code! > > > On Wed, Jul 21, 2010 at 2:10 AM, Michael Snoyman > wrote: > > > > > > On Wed, Jul 21, 2010 at 8:59 AM, Gour wrote: > >> > >> On Wed, 21 Jul 2010 08:06:49 +0300 > >> >>>>>> "Michael" == M

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

2010-07-20 Thread Michael Snoyman
On Wed, Jul 21, 2010 at 8:59 AM, Gour wrote: > On Wed, 21 Jul 2010 08:06:49 +0300 > >>>>>> "Michael" == Michael Snoyman wrote: > > Michael> For the sqlite backend for persistent, I took direct-sqlite > Michael> and modified it slightly. I have

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

2010-07-20 Thread Michael Snoyman
On Wed, Jul 21, 2010 at 7:54 AM, Gour 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 filesystem and

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 wrote: > 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 guessing). Satis

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 wrote: > > 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 part, I s

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 wrote: > I did try Takusen with PostgreSQL and it worked perfectly for me, too. > The only reason I'm using HDBC is because there

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 wrote: > 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 > worth considering

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 wrote: > On 29 June 2010 15:20, Michael Snoyman 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 this? > > Si

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

2010-06-28 Thread Michael Snoyman
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" wrote: > > Hi all, > > I'll admit, the original idea for this package was something

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

Re: [Haskell-cafe] MonadCatchIO and bracket.

2010-06-28 Thread Michael Snoyman
On Mon, Jun 28, 2010 at 10:02 PM, Carl Howells 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 surprise when bracket

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

Re: [Haskell-cafe] TH instance code.

2010-06-22 Thread Michael Snoyman
On Tue, Jun 22, 2010 at 6:24 PM, Andy Stewart wrote: > 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 = toVariant . s

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

2010-06-21 Thread Michael Snoyman
s the continuation to run after the block, c > (which in your case involves the after-action from bracket_, and then the > error), and runs that inside the catch block. This causes a successful > completion of bracket_ (first release), followed by the error, which > triggers the catch

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

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 > 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, > > > unfortunately, is not that s

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

2010-06-15 Thread Michael Snoyman
On Wed, Jun 16, 2010 at 8:51 AM, Ivan Miljenovic wrote: > On 16 June 2010 15:45, Roman Cheplyaka wrote: > > * aditya siram [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 > >> niche, but that's part of what is great about it.

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

2010-05-30 Thread Michael Snoyman
On Mon, May 31, 2010 at 3:10 AM, Antoine Latter 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 > capabilities - li

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 wrote: > 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 parsers t

[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] Google Summer of Code: BlazeHTML RFC

2010-05-27 Thread Michael Snoyman
On Thu, May 27, 2010 at 12:57 PM, Johan Tibell wrote: > On Thu, May 27, 2010 at 10:23 AM, Michael Snoyman wrote: > >> On Thu, May 27, 2010 at 11:16 AM, Ivan Miljenovic < >> ivan.miljeno...@gmail.com> wrote: >> >>> Wow, I find it rather surprising that Str

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 wrote: > On 27 May 2010 18:33, Michael Snoyman 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 > > sur

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 wrote: > On 27 May 2010 18:23, Michael Snoyman wrote: > > > > > > On Thu, May 27, 2010 at 11:16 AM, Ivan Miljenovic > > wrote: > >> > >> On 27 May 2010 17:55, Michael Snoyman wrote: > >>

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 wrote: > On 27 May 2010 17:55, Michael Snoyman wrote: > > Two comments: > > * The exclamation point seems good enough for attributes. I copied that > for > > Hamlet as well. > > * If you're standardizing on

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 gai

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

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 wrote: > Michael Snoyman 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&#x

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 wrote: > Michael Snoyman 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 data

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 CIByteStri

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

[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

Re: [Haskell-cafe] Database connection pool

2010-05-07 Thread Michael Snoyman
On Fri, May 7, 2010 at 1:02 AM, Bas van Dijk wrote: > On Thu, May 6, 2010 at 11:54 PM, Bas van Dijk > wrote: > > On Thu, May 6, 2010 at 7:48 PM, Bas van Dijk > wrote: > >> On Thu, May 6, 2010 at 3:24 PM, Michael Snoyman > wrote: > >>> > >&

[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-06 Thread Michael Snoyman
On Thu, May 6, 2010 at 9:13 AM, Bryan O'Sullivan wrote: > On Wed, May 5, 2010 at 10:51 PM, Michael Snoyman wrote: > >> * 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] 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 gotcha

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

[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 wrote: > (Note: Reply-to is set to haskell-cafe@haske

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

2010-05-04 Thread Michael Snoyman
happs mailing list (You will need to be subscribed): > http://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 >

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

[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 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 Push, Reverse A

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 s

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

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 wrote: > > Hello, > > Is there a way to perform some kind of remote method invocation in haskell? > (Or, "remote object", but I prefer not to

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

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 wrote: > > Erlang has yaws (http://yaws.hyber.org/) > Scala has lift (http://liftweb.net/) > Python has django (http://www.djangoproject.com/) > Ruby has rails (http://rubyonrails.org/) > > H

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 wrote: > We just had a big old web dev discussion in #darcs, which

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

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 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 came very cl

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 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> since it was

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 wrote: > On Sun, 7 Mar 2010 21:03:12 -0800 > >>>>>> "Michael" == Michael Snoyman wrote: > > Michael> * Deployable anywhere (based on WAI) > > Does it mean one will be able to use it with webservers like Ch

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

2010-03-07 Thread Michael Snoyman
Hello all, I'm happy to announce the first release of the Yesod Web Framework[1]. This framework has been in development for over a year and is in production use on a number of websites. The project homepage[2] provides a fairly thorough rundown of features; for here, I will suffice to say that th

[Haskell-cafe] ANNOUNCE: wai-0.0.0 (Web Application Interface)

2010-03-04 Thread Michael Snoyman
Hello all, I'd like to announce the first release of the Web Application Interface package[1]. The WAI is a common protocol between web server backends and web applications, allowing application writers to target a single interface and have their code run on multiple server types. There are two p

Re: [Haskell-cafe] Re: programmatic DB interface?

2010-02-05 Thread Michael Snoyman
On Fri, Feb 5, 2010 at 10:55 AM, Johannes Waldmann < waldm...@imn.htwk-leipzig.de> wrote: > > and then read with my own parse string:"%Y-%m-%d %T%Q" > > This seems to work just fine. > > Thanks. - When I'm using that format string, I get: > > Convertible: error converting source data SqlLocalTime

Re: [Haskell-cafe] Re: programmatic DB interface?

2010-02-04 Thread Michael Snoyman
On Thu, Feb 4, 2010 at 7:38 PM, Colin Paul Adams wrote: > > "Johannes" == Johannes Waldmann > writes: > >Johannes> anyone know what's happening here? I get this when >Johannes> executing a query via haskelldb-hdbc-postgresql-0.12 (The >Johannes> date is actually in the DB, so it'

Re: [Haskell-cafe] Anyone recommend a VPS?

2010-01-31 Thread Michael Snoyman
l.com/2009/10/30/Haskell-on-a-Webfaction-Host > > They support Postgres databases too. > > It's cheaper than a vps (I'm paying $8.50 a month but you can pay as > little as $5.50), but possibly not as convenient. > > -Rob > > On Sun, Jan 31, 2010 at 11:05 PM, Tom

Re: [Haskell-cafe] Anyone recommend a VPS?

2010-01-31 Thread Michael Snoyman
OK, I guess the unananimous opinion in linode ;). Thanks for the input everyone! Michael On Sun, Jan 31, 2010 at 11:29 PM, Marc Weber wrote: > > I'm a happy linode customer: http://www.linode.com/ > Me too. I tried different hosting services before. They all have there > strength. The linode sh

[Haskell-cafe] Anyone recommend a VPS?

2010-01-31 Thread Michael Snoyman
Hi all, I'm working with a client right now on deploying an app. I was wondering if anyone had some recommendations for a Haskell-friendly host. I'm inclined to go with a VPS for this setup, but if there's reliable shared hosting, that would do as well. This client is fairly price-sensitive, so I

[Haskell-cafe] Input request: which interface for Web Application Interface

2010-01-29 Thread Michael Snoyman
I've made a few more changes to WAI since my last update. Namely, request and response headers are now their own datatype. As with Method, HttpVersion and Status, they both provide constructors for "everything else" and have functions to convert to/from bytestrings. This makes the package a bit mor

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

2010-01-24 Thread Michael Snoyman
Minor spec question: what should be the defined behavior when an application requests that a file be sent and it does not exist? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

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

2010-01-24 Thread Michael Snoyman
On Sun, Jan 24, 2010 at 1:23 PM, Bardur Arantsson wrote: > Michael Snoyman wrote: > > [--snip--] > > Next, I have made the ResponseBodyClass typeclass specifically with the >> goal >> of allowing optimizations for lazy bytestrings and sending files. The >> former

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

2010-01-23 Thread Michael Snoyman
On Sun, Jan 24, 2010 at 2:38 AM, Nicolas Pouillard < nicolas.pouill...@gmail.com> wrote: > On Sat, 23 Jan 2010 21:31:47 +0200, Michael Snoyman > wrote: > > Just as an update, I've made the following changes to my WAI git repo ( > > http://github.com/snoyberg/

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

2010-01-23 Thread Michael Snoyman
is more in line with how most people would expect to program. At the same time, I believe there is no performance issue going either way, and am open to community input. Michael On Mon, Jan 18, 2010 at 1:48 PM, Michael Snoyman wrote: > Mark, thanks for the response, it's very well though

Re: [Haskell-cafe] Web application interface

2010-01-23 Thread Michael Snoyman
eve that functionality could be added > as a 3rd party library with out modifying core happstack. That is how we > would prefer to see it done so that the core is simple, and so that people > can implement their own caching system if their needs are different. > > - jeremy > > On Jan

Re: [Haskell-cafe] Web application interface

2010-01-21 Thread Michael Snoyman
on of WAI should support all three > currently used methods: > - lazy I/O > - Enumerator > - sendFile > > I haven't really thought about how that would work.. > > hyena currently includes a Network.WAI which uses ByteString: > > > http://hackage.haskell.org/pack

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 anyt

[Haskell-cafe] PROPOSAL: Web application interface

2010-01-17 Thread Michael Snoyman
Following up on the previous thread, I've started a github project for some ideas of a web application interface. It's borrowing from both Hyena and Hack, with a few of its own ideas. The project is available at http://github.com/snoyberg/wai, and the Network.Wai module is available at http://githu

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

Re: [Haskell-cafe] Web application interface

2010-01-14 Thread Michael Snoyman
ould even include a helper function for making this easy. We could also provide a lazy bytestring -> enumerator function while we're at it (although those features might be more appropriate for a wai-helpers package, I'm not certain). I think it would be great if we could get Happstack i

Re: [Haskell-cafe] Web application interface

2010-01-14 Thread Michael Snoyman
On Thu, Jan 14, 2010 at 1:58 PM, Alberto G. Corona wrote: > > > 2010/1/14 Michael Snoyman > >> >> >> On Thu, Jan 14, 2010 at 1:20 PM, Alberto G. Corona >> wrote: >> >>> >>> >>> 2010/1/14 Michael Snoyman >>> >

Re: [Haskell-cafe] Web application interface

2010-01-14 Thread Michael Snoyman
On Thu, Jan 14, 2010 at 1:20 PM, Alberto G. Corona wrote: > > > 2010/1/14 Michael Snoyman > > >> >> 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 >> r

Re: [Haskell-cafe] Web application interface

2010-01-14 Thread Michael Snoyman
On Thu, Jan 14, 2010 at 12:50 PM, Alberto G. Corona wrote: > > > 2010/1/14 Jinjing Wang > > >> >> 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 > ever trough that the

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

2010-01-13 Thread Michael Snoyman
> Hi Michael, > > > > on first impression this seems like a good idea then. > > > > Günther > > > > > > > > Am 13.01.10 15:48, schrieb Michael Snoyman: > >> > >> Günther, > >> > >> Hack is a layer between a web ap

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 hack-handler-simpleserv

[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, t

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] 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] Lambda's

2009-12-31 Thread Michael Snoyman
On Thu, Dec 31, 2009 at 11:57 AM, Ivan Miljenovic wrote: > 2009/12/31 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

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 wrote: > > > I love lambda's:

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

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 wrote: > Excerpts from Alexander Dunlap's message of Thu Dec 31 00:06:58 -0500 2009: > > Why are you importing both Control.Failure

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

2009-12-19 Thread Michael Snoyman
On Sat, Dec 19, 2009 at 4:46 PM, ntupel 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 code stubs) > d

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

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 wrote: > > > On Tue, Dec 8, 2009 at 1:25 AM, Ben Franksen wrote: > >> Michael Snoyman wrote: >> > On Mon, Dec 7, 2009 at 9:53 PM, Henning Thielemann < >> > lemm...@henning-thielemann.de> wrote: >&

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

[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

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

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 > <mailto:ben.frank...@online.de>> wrote: > > > > Michael Snoyma

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 wrote: > On Sat, Dec 5, 2009 at 3:00 PM, Michael Snoyman > wrote: > > > > > > On Sun, Dec 6, 2009 at 12:55 AM, Henning Thielemann > > wrote: > >> > >> On Sun, 6 Dec 2009, Michael Snoyman wrote:

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

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

2009-12-06 Thread Michael Snoyman
monad-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 Poui

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

2009-12-05 Thread Michael Snoyman
On Sun, Dec 6, 2009 at 7:36 AM, Luke Palmer wrote: > On Sat, Dec 5, 2009 at 10:04 PM, Michael Snoyman > 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. > > > > W

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

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 >> wrote: >> On Sat, Dec 05, 2009 at 05:52:11PM +0200, Michael Sn

Re: [Haskell-cafe] Avoiding undecidables

2009-12-05 Thread Michael Snoyman
On Sat, Dec 5, 2009 at 10:33 PM, José Iborra 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 t

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

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 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". > Ho

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] cabal-install binary for FreeBSD

2009-11-28 Thread Michael Snoyman
On Sat, Nov 28, 2009 at 7:56 PM, Duncan Coutts 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-instal

<    1   2   3   4   5   6   7   >