Re: [Haskell-cafe] "plugins" fails on a simple example

2013-10-03 Thread Jeremy Shaw
this should be fixed in plugins 1.5.4.0 which is now on hackage. Thanks! - jeremy On Mon, Sep 16, 2013 at 2:49 AM, Petr Pudlák wrote: > Hi, > > I'm playing with “plugins”, trying to evaluate a simple expression: > > import Control.Monad > import System.Eval.Haskell > > main = do > let fExpr

Re: [Haskell-cafe] "plugins" fails on a simple example

2013-09-17 Thread Jeremy Shaw
where to start. > > Best regards, > Petr > > Dne 09/16/2013 11:12 PM, Jeremy Shaw napsal(a): > > plugins probably needs to be patched[1]. I'll happily apply such a patch. > > - jeremy > [1] or rewritten from the ground up > > > On Mon, Sep 16, 2013 a

Re: [Haskell-cafe] "plugins" fails on a simple example

2013-09-16 Thread Jeremy Shaw
plugins probably needs to be patched[1]. I'll happily apply such a patch. - jeremy [1] or rewritten from the ground up On Mon, Sep 16, 2013 at 2:49 AM, Petr Pudlák wrote: > Hi, > > I'm playing with “plugins”, trying to evaluate a simple expression: > > import Control.Monadimport System.Eval.H

Re: [Haskell-cafe] ANNOUNCE: Ajhc Haskell Compiler 0.8.0.7 Release

2013-07-08 Thread Jeremy Shaw
Any plans on supporting the popular Raspberry Pi platform? I poked at the source code a bit, but I didn't even know where to begin. - jeremy On Fri, Jul 5, 2013 at 11:01 PM, Kiwamu Okabe wrote: > We are happy to announce Ajhc 0.8.0.7. > You can program interrupt handler with Haskell language o

Re: [Haskell-cafe] Open Source project suitable for 2-3 persons this fall?

2013-07-04 Thread Jeremy Shaw
I'm still interested in getting the scoutess project pushed the last 10% of the way to being useable: http://hub.darcs.net/alp/scoutess http://alpmestan.wordpress.com/2012/03/21/scoutess-continuous-integration-cabal-and-the-google-summer-of-code/ http://projectscoutess.blogspot.com/ The code do

Re: [Haskell-cafe] Automating Hackage accounts

2013-06-13 Thread Jeremy Shaw
No idea, But if not, it should be trivial to add support. The two main issues would be getting an SSL certificate (if one does not already exist) and then making sure that the links do not hardcode the schema. So // hackage.haskell.org/foo instead of http://hackage.haskell.org/. Then the site can

Re: [Haskell-cafe] ANNOUNCE: standalone-haddock-1.0

2013-06-07 Thread Jeremy Shaw
Awesome! I have been wanting to use scoutess to automatically build and upload haddock docs, but getting it to build the docs in an uploadable fashion was so painful! I had crazy code that was rewriting the package database and stuff. This seems like exactly what I need! - jeremy On Fri, Jun 7,

Re: [Haskell-cafe] Why isn't hsc2hs functionality provided by ghc?

2013-06-05 Thread Jeremy Shaw
While hsc2hs is a popular FFI preprocessor, it is not the only one. There is also greencard and a few others. While hsc2hs can usually get the job done -- it's not clear that it is really the best choice. I think the Haskell FFI got to the point that it was 'just good enough' and then people lost

Re: [Haskell-cafe] voting sytem DSL

2013-06-05 Thread Jeremy Shaw
Hello, The closest thing I know of is, https://github.com/whatgoodisaroad/surveyor - jeremy On Wed, Jun 5, 2013 at 4:22 PM, Corentin Dupont wrote: > Hi haskellers! > I am trying to make a DSL able to describe a voting system. That DSL should > be able to describe many different voting procedur

Re: [Haskell-cafe] DSL to English and back for game rule set?

2013-05-20 Thread Jeremy Shaw
This sounds like something you might use Grammatical Framework for, http://www.grammaticalframework.org/doc/tutorial/gf-tutorial.html - jeremy On Sun, May 19, 2013 at 3:27 PM, Matthew O'Connor wrote: > Hello all, > > I recognize this isn't directly a Haskell-related question, but as I'd like >

Re: [Haskell-cafe] Hackage checking maintainership of packages

2013-05-05 Thread Jeremy Shaw
Yes -- being maintained, and have a lot of commit activity are not the same thing. There are many simple libraries which do not require much ongoing develop. They are designed to do something of limited scope, and they only need to be updated when something breaks. I have thought that a more inter

Re: [Haskell-cafe] Looking for portable Haskell or Haskell like language

2013-04-27 Thread Jeremy Shaw
Have you considered installing on older version of GHC? Such as GHC 6.10.4 or GHC 6.8.3? http://www.haskell.org/ghc/download_ghc_6_10_4 http://www.haskell.org/ghc/download_ghc_683 They won't have all the latest extensions.. but they still have more features than any other alternative. Also, once

Re: [Haskell-cafe] Web servers: Running them multiple times in a ghci session

2013-04-11 Thread Jeremy Shaw
The problem is that ^C only kills the main thread, but does not kill any child threads that have been spawned. In happstack the Conf has an optional field where you can supply a ThreadGroup. When threads are forked they will be registered with the ThreadGroup, and when you ^C, all those threads ca

Re: [Haskell-cafe] [Haskell] ANN: adobe-swatch-exchange-0.1.0.0

2013-04-04 Thread Jeremy Shaw
On Thu, Apr 4, 2013 at 1:46 PM, Brent Yorgey wrote: > (Redirecting follow-up to haskell-cafe) > > Very cool! I have been hoping someone will find a way to integrate > kuler.adobe.com with diagrams, and this will help a lot. =) > > https://github.com/diagrams/diagrams-lib/issues/77 Nice! One th

[Haskell-cafe] Does GHC 7.8 make targeting bare metal ARM any easier?

2013-03-19 Thread Jeremy Shaw
There have been at least a couple projects, such as hOp and HaLVM which attempt to run GHC on the bare metal or something similar. Both these projects required a substantial set of patches against GHC to remove dependencies things like POSIX/libc. Due to the highly invasive nature, they are also h

Re: [Haskell-cafe] monadic DSL for compile-time parser generator, not possible?

2013-03-12 Thread Jeremy Shaw
nst the Parsing class > and then use trifecta or write instances for attoparsec or parsec. With > enough inlining perhaps the overhead of the class gets optimized away? > > [1] http://hackage.haskell.org/package/parsers > > > On Tue, Mar 12, 2013 at 9:06 PM, Jeremy Shaw wrote:

Re: [Haskell-cafe] monadic DSL for compile-time parser generator, not possible?

2013-03-12 Thread Jeremy Shaw
On Tue, Mar 12, 2013 at 3:32 PM, Jacques Carette wrote: > On 13-03-12 04:06 PM, Jeremy Shaw wrote: >>> data ParserSpec a where >>> AnyChar :: ParserSpec Char >>> Return :: a -> ParserSpec a >>> Join:: ParserSpec (ParserSpec a) -

[Haskell-cafe] monadic DSL for compile-time parser generator, not possible?

2013-03-12 Thread Jeremy Shaw
It would be pretty damn cool if you could create a data type for generically describing a monadic parser, and then use template haskell to generate a concrete parser from that data type. That would allow you to create your specification in a generic way and then target different parsers like parsec

Re: [Haskell-cafe] Embedded haskell?

2013-02-20 Thread Jeremy Shaw
Meyer wrote: > On Wed, Feb 20, 2013 at 4:01 PM, Jeremy Shaw wrote: >> Another option would be to use Atom. I have successfully used it to >> target the arduino platform before. Running the entire OS on the >> embedded system seems dubious. Assuming you are using something the 9x

Re: [Haskell-cafe] Embedded haskell?

2013-02-20 Thread Jeremy Shaw
Another option would be to use Atom. I have successfully used it to target the arduino platform before. Running the entire OS on the embedded system seems dubious. Assuming you are using something the 9x family of transmitters -- they are slow and have very little internal memory. Plus trying to pr

Re: [Haskell-cafe] [Security] Put haskell.org on https

2012-10-28 Thread Jeremy Shaw
On Sun, Oct 28, 2012 at 1:45 PM, Patrick Hurst wrote: > On the other hand, with PGP, any user who wants to be secure but doesn't use > GPG would have to verify the identity of whoever signed the Cabal GPG key, > and most non-Linux operating systems don't come with a list of trusted GPG > keys.

Re: [Haskell-cafe] acid-state audit trail

2012-10-19 Thread Jeremy Shaw
Right now acid-state always tries to restore everything up through the latest events. The long term plan is to create an acid-state tool that would allow you to rollback the event log, list and examine specific events, etc. So, it is possible in theory, and not even that hard, but no one has done

Re: [Haskell-cafe] Hackage 2 maintainership

2012-06-25 Thread Jeremy Shaw
On Wed, Jun 20, 2012 at 11:06 AM, Ben Gamari wrote: > This list is definitely a start. One of the issues that was also > realized is the size of the server's memory footprint. Unfortunately > acid-state's requirement that all data either be in memory or have no > ACID guarantees was found to be a

Re: [Haskell-cafe] Problem with plugins

2012-06-20 Thread Jeremy Shaw
I really have no idea. I am the new plugins maintainer -- but so far that mostly means I am willing to apply darcs patches and uploading things to hackage. I have not had a chance to really dig into plugins. I will now make some wild guesses. 1. does it matter if you compile with -O2 vs -O0 ?

[Haskell-cafe] ANN: clckwrks - a Haskell blogging and CMS framework

2012-06-12 Thread Jeremy Shaw
Hello! I am pleased to announce the launch of clckwrks.com. clckwrks (pronounced, 'clockworks') is a new Haskell-based content management (CMS) and blogging framework: http://www.clckwrks.com/ It is freely available under the BSD3 license. clckwrks is still in early alpha development. We are lo

Re: [Haskell-cafe] ANN: reform - a type-safe form generation and validation library in the spirit of formlets and digestive-functors < 0.2

2012-05-22 Thread Jeremy Shaw
I think there's definitely room for two libraries. > > Cheers, > Jasper > > On Tue, May 22, 2012 at 2:23 AM, Felipe Almeida Lessa > wrote: >> On Mon, May 21, 2012 at 7:18 PM, Jeremy Shaw wrote: >>> I hope to do a full comparison of reform vs digestive-functors 0.3 v

[Haskell-cafe] ANN: reform - a type-safe form generation and validation library in the spirit of formlets and digestive-functors < 0.2

2012-05-21 Thread Jeremy Shaw
I am pleased to annouce the release of 'reform'. A full tutorial is available here: http://www.happstack.com/docs/crashcourse/Reform.html Reform is an HTML form generation and validation library. It follows in the footsteps of formlets and digestive-functors <= 0.2. In fact, much of the code in r

Re: [Haskell-cafe] How to use Plugins package?

2012-05-18 Thread Jeremy Shaw
plugins-auto has a demo in the darcs repo: http://www.patch-tag.com/r/facundo/plugins-auto/snapshot/current/content/pretty/demo Does that work for you ? - jeremy On Wed, May 16, 2012 at 9:46 AM, Андрей Янкин wrote: > Hi, > > I'm newbie and I've got a problem. > > I'm trying to get example prog

Re: [Haskell-cafe] Generalizing (++) for monoids instead of using (<>)

2012-05-04 Thread Jeremy Shaw
In the context of string-like types ++ seems quite sensible because the Monoid instances concat the strings. However, not all Monoid instances imply concatenation. A Monoid instance might provide choice. For example, we could define a parser, > module Main where > > import Data.Monoid > > newtype

Re: [Haskell-cafe] Specify compile error

2012-05-03 Thread Jeremy Shaw
This response is written in literal Haskell. > {-# LANGUAGE DataKinds, KindSignatures, GADTs #-} The key to getting the type checker involved is to put the information where the type-checker can see it -- namely, the type signature. So, let's change A so that the Safe/Unsafe information is in th

Re: [Haskell-cafe] JSON library suggestions?

2012-04-24 Thread Jeremy Shaw
Hello, Have you emailed Bryan O'Sullivan and explained your problem? It sounds to me like choosing Double was just the wrong choice and is a design flaw that should be fixed in Aeson? There are far too many JSON libraries on hackage already, and what would be really useful (to me) is for the comm

Re: [Haskell-cafe] JSON library suggestions?

2012-04-24 Thread Jeremy Shaw
Hello, I could be wrong, but I think the only real numeric type in javascript is 'Number' which is a floating point number? Which is why Aeson and others insist on converting everything to a Double or other Rational number? - jeremy On Tue, Apr 24, 2012 at 3:46 PM, Jeff Shaw wrote: > Hello, > U

Re: [Haskell-cafe] ANN: plugins-1.5.2.1

2012-04-09 Thread Jeremy Shaw
are still valid: http://hackage.haskell.org/package/plugins-1.5.1.4 - jeremy On Mon, Apr 9, 2012 at 1:21 PM, Jeremy Shaw wrote: > Hello! > > I am pleased to announce the release of plugins-1.5.2.1: > > http://hackage.haskell.org/package/plugins > > The plugins library p

[Haskell-cafe] ANN: plugins-1.5.2.1

2012-04-09 Thread Jeremy Shaw
Hello! I am pleased to announce the release of plugins-1.5.2.1: http://hackage.haskell.org/package/plugins The plugins library provides facilities to compile and dynamically load/link Haskell code into a running Haskell application. (The related, plugins-auto package adds support for file watchi

Re: [Haskell-cafe] ANN: acme-http

2012-04-01 Thread Jeremy Shaw
On Sun, Apr 1, 2012 at 12:48 PM, Michael Snoyman wrote: > That's awesome! I think you should pair this up with the /dev/null > datastore and then you'll be truly webscale! Well, acid-state does have a backend that skips writing any transaction logs to disk making it pure memory based: http://ha

[Haskell-cafe] ANN: acme-http

2012-04-01 Thread Jeremy Shaw
Hello, As we all know, the true measure of performance for a web server is the classic PONG test. And, so the Happstack team is pleased to announce the release of the new acme-http server! hackage: http://hackage.haskell.org/package/acme-http source: http://patch-tag.com/r/stepcut/acme-http

Re: [Haskell-cafe] ANN: Happstack 7

2012-03-30 Thread Jeremy Shaw
On Fri, Mar 30, 2012 at 4:36 AM, Lennart Kolmodin wrote: > Congratulations to the new release, and may I say that the homepage looks > smashing! :D > Thanks! > Before I saw happstack-wai I had a quick look at the happstack API and saw > that the Request keeps the request body as a (lazy?) Stri

[Haskell-cafe] ANN: Happstack 7

2012-03-29 Thread Jeremy Shaw
We are pleased to announce the release of Happstack 7! Happstack is a fast, modern, web application framework written in Haskell. Please check out the brand new happstack.com website to read about what is new in Happstack 7, and what we are planning for Happstack 8, and what makes Happstack great

Re: [Haskell-cafe] Happstack routing + boomerang + non-ascii urls

2012-03-27 Thread Jeremy Shaw
This should be fixed in happstack-server-6.6.5. You will need to rebuild web-routes-happstack as well to get the changes. Let me know if it works for you! Here is my test app: http://hpaste.org/66072 - jeremy On Tue, Mar 27, 2012 at 8:17 AM, Semen Trygubenko wrote: > Dear Haskell-Cafe, > > La

Re: [Haskell-cafe] Happstack routing + boomerang + non-ascii urls

2012-03-27 Thread Jeremy Shaw
That is concerning and mysterious. In Web.Routes.Happstack we do: >let f = runSite (domain `Text.append` approot) siteSpec (map Text.pack $ rqPaths rq) so, boomerang should be using the properly decoded rqPaths from the Happstack Request. Not sure where things are going wrong. I'll

[Haskell-cafe] GSoC project ideas for web technology

2012-03-25 Thread Jeremy Shaw
Hello, If you are looking for some ideas for a GSoC project, I have written down some web technology related projects I would like to see. So far I mostly have ideas for improvements to HSX (a templating solution) and acid-state (a pure, haskell persistent datastore). Both these technologies can

Re: [Haskell-cafe] Why so many strings in Network.URI, System.Posix and similar libraries?

2012-03-11 Thread Jeremy Shaw
Argh. Email fail. Hopefully this time I have managed to reply-all to the list *and* keep the unicode properly intact. Sorry about any duplicates you may have received. On Sun, Mar 11, 2012 at 1:33 PM, Jason Dusek wrote: > 2012/3/11 Jeremy Shaw : > > Also, URIs are not defined in

Re: [Haskell-cafe] Why so many strings in Network.URI, System.Posix and similar libraries?

2012-03-11 Thread Jeremy Shaw
On Sun, Mar 11, 2012 at 1:33 PM, Jason Dusek wrote: > 2012/3/11 Jeremy Shaw : > > Also, URIs are not defined in terms of octets.. but in terms > > of characters. If you write a URI down on a piece of paper -- > > what octets are you using? None.. it's some scribbles

Re: [Haskell-cafe] Why so many strings in Network.URI, System.Posix and similar libraries?

2012-03-10 Thread Jeremy Shaw
It is mostly because those libraries are far older than Text and ByteString, so String was the only choice at the time. Modernizing them is good.. but would also break a lot of code. And in many core libraries, the functions are required to have String types in order to be Haskell 98 compliant. So

[Haskell-cafe] Compressed Data.Map for more efficient RAM usage?

2012-02-16 Thread Jeremy Shaw
Sometimes we want to store very large collection types in RAM -- such as a Data.Map or Data.IxSet. It seems like we could trade-off some speed for space savings by compressing the values in RAM. Lemmih has previously created compact-map: http://hackage.haskell.org/package/compact-map which mi

Re: [Haskell-cafe] Hackage 2 maintainership

2012-02-13 Thread Jeremy Shaw
Awesome! I am willing to assist with any Happstack related technical problems or questions that arise in trying to get this deployed. - jeremy On Mon, Feb 13, 2012 at 5:44 PM, Ben Gamari wrote: > Hey all, > > Those of you who follow the Haskell subreddit no doubt saw today's post > regarding

Re: [Haskell-cafe] Adding Html formatting to formlets

2012-02-02 Thread Jeremy Shaw
Hello, Formlets is deprecated in favor of digestive functors. If you have not looked at the digestive-functors package I highly recommend that you do. It fixes a lot of little issues that formlets had -- but is basically the same thing. The (<<<) operator is a already a standard operator in Co

Re: [Haskell-cafe] Hackage down!

2011-12-01 Thread Jeremy Shaw
Mirroring is a key feature of Hackage 2. But, Hackage 2 needs more love before it can be released. More lovers would make it go faster though! - jeremy On Thu, Dec 1, 2011 at 1:36 PM, Michael Litchard wrote: > Does anyone know of a hackage mirror? It now occurs to me I should > have a local mirr

Re: [Haskell-cafe] A Mascot

2011-11-21 Thread Jeremy Shaw
I think the artwork is nice, but I am not sure that a lamb is an appropriate mascot for Haskell. A mascot is supposed to represent characteristics, emotions, or desires that a particular group of people aspire to have, be like, etc. To outsiders, it provides a quick way to see if it might be a gro

Re: [Haskell-cafe] A Mascot

2011-11-15 Thread Jeremy Shaw
I thought we already had a mascot? http://www.haskell.org/pipermail/haskell/attachments/20090401/9fb8fa05/haskell-mascot.jpg :p - jeremy On Tue, Nov 15, 2011 at 7:01 PM, heathmatlock wrote: > I liked Go's mascot, and I figure it couldn't hurt to have our own. I spent > the past hour making thi

Re: [Haskell-cafe] happstack file serving

2011-11-02 Thread Jeremy Shaw
On Tue, Nov 1, 2011 at 9:48 AM, Gary Klindt wrote: > Hello all, > > I want to have a web application using one 'index.html' file with ajax > requests and a happstack web server which response to server requests. > For that purpose I need to use some javascript libraries in my directory > tree. I t

Re: [Haskell-cafe] Persistent Concurrent Data Structures

2011-11-01 Thread Jeremy Shaw
If I have a list [a], and I want to make that persistence, then I have to have some way to serialize values of type 'a'. If I then modify my type, then the serialized structure will be out of sync with the new version of the type -- so I will need some sort of migration feature. safecopy addresses

[Haskell-cafe] ANN: ircbot 0.1.1

2011-10-10 Thread Jeremy Shaw
Hello, I have just released a new library on hackage called ircbot. (Because that is what Haskell really needs -- another irc bot library). http://hackage.haskell.org/package/ircbot A demo app is here: http://patch-tag.com/r/stepcut/ircbot/snapshot/current/content/pretty/demo.hs The demo i

[Haskell-cafe] I for one welcome our new Robotic Overlords

2011-09-27 Thread Jeremy Shaw
When the robots take over, do you want them to be developed using a sane language like Haskell or Agda? Or some dangerous untyped OO language? I think the answer is obvious. The question is, "How?". The robots will not be developed by us, but by the children of today. So, we must reach thei

Re: [Haskell-cafe] New releases and BSD3 license

2011-08-10 Thread Jeremy Shaw
Awesome! I believe MissingH includes some code that I contributed (or used to). That can all be licensed BSD3. - jeremy On Wed, Aug 10, 2011 at 2:14 PM, John Goerzen wrote: > Hello, > > I would like to announce new versions of the following: > > hslogger > convertible > HDBC > HDBC-odbc > HDBC-

Re: [Haskell-cafe] [Haskell] ANN: boomerang and web-routes-boomerang

2011-07-21 Thread Jeremy Shaw
:) I am only inclined to change it if there is a strong chance of people wanting to use the boomerang name on hackage to refer to something related to the harmony boomerang project.. - jeremy On Thu, Jul 21, 2011 at 1:55 PM, Janis Voigtländer wrote: > Am 21.07.2011 20:45, schrieb Jeremy S

[Haskell-cafe] ANN: boomerang and web-routes-boomerang

2011-07-21 Thread Jeremy Shaw
Hello, I am pleased to announce the release of two new libraries: boomerang and web-routes-boomerang. boomerang is a library for general purpose, invertible parsing and pretty printing. It provides combinators which allow you to specify a grammar once and automatically extract a parser and pretty

Re: [Haskell-cafe] Binary and Serialize classes

2011-04-28 Thread Jeremy Shaw
Hello, You might consider using safecopy, which explicitly supports the case where the serialization format or the datastructure itself changes and the data needs to be migrated to the new format? http://acid-state.seize.it/safecopy - jeremy On Thu, Apr 28, 2011 at 10:00 AM, Evan Laforge wrote

Re: [Haskell-cafe] Light and fast http server

2011-03-12 Thread Jeremy Shaw
On Mar 11, 2011, at 4:39 PM, Victor Oliveira wrote: Hi cafe, There are a lot of http servers in hackage. I didn't have used none. I would like to know if one of them is something closer of the nginx. I need some light and fast. It don't need support all http, just the basics is fine. Sugges

[Haskell-cafe] Haskell Web Framework Happstack 6 Released

2011-02-17 Thread Jeremy Shaw
orthy of a Ph.D, and everything in between. If you want to work, we can certainly find a way to use your talents! There are also plenty of non-coding related tasks including documentation, graphic design, user surveys, etc. You are also encouraged to blog about your Happstack projects! T

Re: [Haskell-cafe] Storing passwords securely

2011-02-05 Thread Jeremy Shaw
Have you seen the PBKDF2 library? http://hackage.haskell.org/package/PBKDF2 Does that look like a reasonable way to store passwords securely? - jeremy On Feb 5, 2011, at 8:12 PM, Peter Scott wrote: The usual advice on how to store passwords securely is "use bcrypt", but since there seem to

Re: [Haskell-cafe] web-routes and forms

2011-01-26 Thread Jeremy Shaw
On Wed, Jan 26, 2011 at 4:33 PM, Corentin Dupont wrote: > Now turning to digestive functors, I don't see where do goes the "A.action > actionURL" part that was in traditionnal forms? > It seems I need it for routing the result of the form. I think you will find formHtml is returning you the stuf

Re: [Haskell-cafe] web-routes and forms

2011-01-24 Thread Jeremy Shaw
quot; >    input ! type_  "submit" ! tabindex "3" ! accesskey "S" ! value "Enter > Nomic!" > > And are decoded using a FromData: > > instance FromData LoginPass where >   fromData = do >     login  <- look "login" `

[Haskell-cafe] Chicago Haskell User Group Meetup this Thursday @ 8PM

2011-01-24 Thread Jeremy Shaw
Hello, The Chicago Haskell User Group will be meeting at the Pumping Station One hackerspace this Thursday @ 8PM. This meeting coincides with a regularly scheduled Haskell class at PS:One. Among other things, we will discuss how to grow the local Chicago Haskell user community, and a possible gro

Re: [Haskell-cafe] web-routes and forms

2011-01-22 Thread Jeremy Shaw
Web login password >   case mpn of > Just pn -> do >     link <- showURL $ Noop pn >     seeOther link $ string "Redirecting..." > Nothing -> seeOther ("/Login?status=fail" :: String) $ string > "Redirecting..."

Re: [Haskell-cafe] web-routes and forms

2011-01-18 Thread Jeremy Shaw
ackages. > >> cabal install digestive-functors-hsp > > cabal: Unknown build tool trhsx > > Whereas trhsx is in my PATH (under linux). > > You said I need the latest happstack from darcs, why? > > Cheers, > Corentin > > On Sun, Jan 9, 2011 at 8:36 PM,

Re: [Haskell-cafe] Happstack events and web page refreshing

2011-01-17 Thread Jeremy Shaw
On Jan 17, 2011, at 2:19 PM, Corentin Dupont wrote: Indeed, I tried with ? and it's unusable. It make blink the page, ungrey the "stop" button for a second and make the fields loose the focus so it's impossible to type in. I'll try with XMLHTTPRequest. Right. Using the jQuery library sh

Re: [Haskell-cafe] Browser Game Engine

2011-01-17 Thread Jeremy Shaw
On Jan 16, 2011, at 9:26 PM, Tom Hawkins wrote: I want to create a simple browser game using Haskell. It would be nothing complicated: basic 2D graphics, limited sound, and minimal network traffic. What is the recommended medium? Flash or JavaScript+SVG? I think your options are: flash or

Re: [Haskell-cafe] Happstack events and web page refreshing

2011-01-17 Thread Jeremy Shaw
Hello, The problem is that clients are not 'connected' to the web server. The way it works (more or less) is: 1. client connects to server and sends a Request 2. server sends a Response 3. connection is terminated. So, once the page has been loaded there is no connection between the web

Re: [Haskell-cafe] web-routes and forms

2011-01-09 Thread Jeremy Shaw
ttp://localhost:8000/Nomic/"; "" (nomicSite sh) > ok $ toResponse html >   ] > > > The red line doesn't compile. I don't know how to transform a > RoutedNomicServer into a NomicSe

Re: [Haskell-cafe] handling multiple versions of a data structure

2010-12-20 Thread Jeremy Shaw
rom the Migrate class to migrate it to the latest type. Does that make sense? - jeremy On Sun, Dec 19, 2010 at 10:58 AM, Dmitry V'yal wrote: > On 17.12.2010 01:09, Jeremy Shaw wrote: >> >> Hello, >> >> You should use happstack-data for this (you do not need the

Re: [Haskell-cafe] (re)newcomer

2010-12-18 Thread Jeremy Shaw
Hello, It looks like you are using GHC 6.10, which is now a pretty old version of GHC. The latest version of the unix package on hackage requires a more recent version of GHC. You could try to force an older version of the unix library: cabal install happstack-server --constraints 'unix

Re: [Haskell-cafe] handling multiple versions of a data structure

2010-12-18 Thread Jeremy Shaw
Nice. Do you think there is any reason we would not be able to / want to use it with happstack ? I would love happstack-data to 'go away' and just use some library from hackage which does the same thing. - jeremy On Dec 17, 2010, at 3:57 AM, Erik Hesselink wrote: I've recently been playi

Re: [Haskell-cafe] handling multiple versions of a data structure

2010-12-16 Thread Jeremy Shaw
On Dec 16, 2010, at 4:48 PM, Daniel Peebles wrote: Have you considered moving these packages that are unrelated to web development into a separate namespace? I know that I never considered looking under the happstack namespace simply because I never do webapps. Yes. I have been wanting to

Re: [Haskell-cafe] What is NoPush module?

2010-12-16 Thread Jeremy Shaw
oops. I got distracted when recording a patch and accidently recorded some extra stuff that was not ready yet. I pushed another patch which rolls back the premature changes. Sorry about that :( - jeremy On Dec 16, 2010, at 8:02 PM, Magicloud Magiclouds wrote: Hi, When I compiling happs

Re: [Haskell-cafe] handling multiple versions of a data structure

2010-12-16 Thread Jeremy Shaw
Hello, You should use happstack-data for this (you do not need the other happstack components to use happstack-data)*. It was created to solve this exact problem. happstack-data builds on type of the 'binary' library and adds versioned data types and automatic version migration. You ca

Re: [Haskell-cafe] Reply-To: Header in Mailinglists (was: About "Fun with type functions" example)

2010-11-19 Thread Jeremy Shaw
Reply-to munging has come up many times on this list (and others). See this page for information on why many people do not like Reply-to munging: http://marc.merlins.org/netrants/listreplyto.html - jeremy On Thu, Nov 18, 2010 at 9:55 PM, Bastian Erdnüß wrote: > Hi there, > > I just put an answ

Re: [Haskell-cafe] ActionScript Byte Code backend ?

2010-11-09 Thread Jeremy Shaw
Hello, I wrote the old backend. I have not (and will not) have the time to update to the newer SWF format. Unless things have changed, the format is well documented -- so you don't have to reverse engineer it if you want to make your own attempt. That said, if you are trying to generate a

[Haskell-cafe] Re: change in overlapping instance behavior between GHC 6.12 and GHC 7 causes compilation failure

2010-11-08 Thread Jeremy Shaw
Hello, I have narrowed this down further to a single file. And created a trac bug for it: http://hackage.haskell.org/trac/ghc/ticket/4485 This is (the only thing?) holding up HSP and happstack moving to GHC 7. - jeremy On Tue, Nov 2, 2010 at 5:36 PM, Jeremy Shaw wrote: > Hello, > >

Re: [Haskell-cafe] How can I use MACID in my existing application?

2010-11-07 Thread Jeremy Shaw
this match with the Update type in Happstack? Thanks a lot for your help. Corentin On Fri, Nov 5, 2010 at 3:50 AM, Jeremy Shaw wrote: Hello, I added a brief section to the happstack crash course on using MACID: http://www.happstack.com/docs/crashcourse/HappstackState.html That should hopefu

Re: [Haskell-cafe] How can I use MACID in my existing application?

2010-11-04 Thread Jeremy Shaw
Hello, I added a brief section to the happstack crash course on using MACID: http://www.happstack.com/docs/crashcourse/HappstackState.html That should hopefully get you started. The example uses happstack state with happstack server. But there is really no connection between the two. Hope this

[Haskell-cafe] change in overlapping instance behavior between GHC 6.12 and GHC 7 causes compilation failure

2010-11-02 Thread Jeremy Shaw
Hello, I have a module, XMLGenerator, which has some overlapping instances. I have a second module, Test, which imports that module and also adds some more overlapping instances. Both modules contain {-# LANGUAGE OverlappingInstances #-} at the top. Under some old version of 6.13 (and probably 6

Re: [Haskell-cafe] Mysterious fact

2010-11-01 Thread Jeremy Shaw
Looks a lot like Church encoding to me: http://en.wikipedia.org/wiki/Church_encoding It was first discovered by the guy who invented lambda calculus :p - jeremy On Nov 1, 2010, at 5:28 PM, Andrew Coppin wrote: The other day, I accidentally came up with this: {-# LANGUAGE RankNTypes #-} typ

Re: [Haskell-cafe] who's in charge?

2010-10-28 Thread Jeremy Shaw
On Oct 27, 2010, at 10:08 AM, Günther Schmidt wrote: Dear Malcolm, since there is no mail client library even after 10+ years I suggest to rethink the approach, because frankly, it's not working. Hello! I am in charge, sorry for the delay! A number of years ago I tried to form a MIME str

Re: [Haskell-cafe] JavaScript in a browser as a Windows GUI?

2010-10-22 Thread Jeremy Shaw
On Fri, Oct 22, 2010 at 12:05 PM, Andrew Coppin wrote: >  On 21/10/2010 07:00 PM, Jeremy Shaw wrote: >> >> But, you are correct that happstack does not currently have support >> for running CGI executables. I imagine that you could write a CGI >> handler (with out mo

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

2010-10-21 Thread Jeremy Shaw
On Thu, Oct 21, 2010 at 12:16 PM, Michael Snoyman wrote: > On this one you may call be biased, but I think keeping Happstack and > Yesod on their own makes perfect sense. If I were an employer looking > to hire someone to work on a project, I would be looking to see that > they can use my tool of

Re: [Haskell-cafe] JavaScript in a browser as a Windows GUI?

2010-10-21 Thread Jeremy Shaw
On Thu, Oct 21, 2010 at 12:04 PM, Andrew Coppin wrote: > My understanding is that Happstack is a very large, powerful and complex > framework for writing Haskell web applications. I was under the impression > that you use it by statically linking the HTTP server and the actual > application toget

Re: [Haskell-cafe] JavaScript in a browser as a Windows GUI?

2010-10-20 Thread Jeremy Shaw
On Oct 20, 2010, at 7:28 PM, Anton van Straaten wrote: Andrew Coppin wrote: I'd like to have a go at writing CGI in Haskell. ... Does anybody know of a solution that works on Windows? I've previously run Happstack on Windows. That was a couple of years ago, though, so I don't know wheth

Re: [Haskell-cafe] Happstack, RqData: (How) can I extract multiple data from form?

2010-10-18 Thread Jeremy Shaw
2010/10/18 Никитин Лев : > Well. Thanks. I've just have a look at formlets. I think is what i need. > But I'm using now HSP. Are formlets integrated with HSP? > (I saw olny using formlets with text.xhtml). hsp support is in a separate package: http://hackage.haskell.org/package/formlets-hsp The

Re: [Haskell-cafe] Haskell Front Page Ideas

2010-10-17 Thread Jeremy Shaw
On Sun, Oct 17, 2010 at 3:11 PM, aditya siram wrote: > An honest list of cons mentioned up-front is a great idea and would attract > me to a language. It shows me that the community is grounded, active , > pragmatic and helpful. Yes. It's called "damaging admission", and generally works very well

Re: [Haskell-cafe] A rant against the blurb on the Haskell front page

2010-10-17 Thread Jeremy Shaw
On Sat, Oct 16, 2010 at 3:02 AM, Stephen Tetley wrote: > > If a "functional language" doesn't mean anything significant then > Haskell probably isn't the language you should be choosing. People who don't know what 'functional language' means can still get all the benefits of functional programmin

Re: [Haskell-cafe] Re: A rant against the blurb on the Haskell front page

2010-10-17 Thread Jeremy Shaw
On Sun, Oct 17, 2010 at 1:32 PM, Stefan Monnier wrote: > AFAIK laziness is a property of the major implementations of Haskell, > but not really of the language itself.  All I see in the Haskell report > points at it being "applicative", "call by name", but nowhere does the > report seem to mandat

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

2010-10-17 Thread Jeremy Shaw
On Sun, Oct 17, 2010 at 10:14 AM, Michael Snoyman wrote: > I'm sure people would love to see built-in support for serving over > SMTP, but I think that's more appropriate for a different package. > Proper SMTP support will also include SSL/TLS support, which will > require even more dependencies.

Re: [Haskell-cafe] Re: Re: A rant against the blurb on the Haskell front page

2010-10-16 Thread Jeremy Shaw
On Oct 16, 2010, at 9:03 PM, Ben Franksen wrote: Still, "Haskell is an open source product" doesn't sound right to me. Even "Haskell is open source" (without the "product") has a bad ring because "source" is short for "source code" and source code is not something a programming language has. Ho

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

2010-10-13 Thread Jeremy Shaw
On Tue, Oct 12, 2010 at 8:03 AM, Brandon S Allbery KF8NH 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 central coordinating > spot for the existing Haskell community, many of us are far better known

Re: happstack-ixset internals/performance (was Re: [Haskell-cafe] Inverse of HaskellDB)

2010-10-02 Thread Jeremy Shaw
ouldn't be talking about keeping a live data set of 28GB in memory > let alone indexing it all, but I was just curious about the ratio (220MB > for 1M points, which is just one heavy user). > > > > On Sat, 2010-10-02 at 14:09 -0500, Jeremy Shaw wrote: >> In the current v

Re: happstack-ixset internals/performance (was Re: [Haskell-cafe] Inverse of HaskellDB)

2010-10-02 Thread Jeremy Shaw
In the current version of IxSet, the performance of querying on just the Lon would be essentially the same as if you just had a "Data.Map Lon Point". But the queries on the second index are current not so great. There is work in progress to rewrite the internals of IxSet to be based on a kd-tree, i

Re: [Haskell-cafe] Inverse of HaskellDB

2010-09-30 Thread Jeremy Shaw
t; initialValue = fromList [ Entry { title = Title "10 Reasons you should > use Happstack." > , blogger = Blogger "stepcut" > , content = "..." > } > , Entry {

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

2010-09-28 Thread Jeremy Shaw
On Tue, Sep 28, 2010 at 5:46 AM, Christopher Done wrote: > http://haskell.org/haskellwiki/Applications_and_libraries/Web_programming > for examples If you search on google for 'haskell web framework' that link actually comes up higher than any other wiki page.. and it does seem to have more compl

Re: [Haskell-cafe] Inverse of HaskellDB

2010-09-28 Thread Jeremy Shaw
Do you need to persistently store your Haskell data types in tables ? Or just persistently store them ? happstack-state provides the latter for you. Your data-types are just plain-old Haskell data types and your queries and updates are just functions in the Reader or State monad. It provides ACID

  1   2   3   4   >