Re: [Haskell] ANN: HaskRel; Employing GHC as a DBMS with support for the relational algebra

2015-12-31 Thread Jeremy Shaw
Would it be feasible to use this in conjunction with [acid-state]( http://acid-state.seize.it/) to create a more complete RDBMS? - jeremy On Sun, Nov 22, 2015 at 7:22 PM, Thor Michael Støre wrote: > Hello, > > After much scratching of my head over intricate parts of this

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 petr@gmail.com wrote: Hi, I'm playing with “plugins”, trying to evaluate a simple expression: import Control.Monad import System.Eval.Haskell main = do

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

2013-09-17 Thread Jeremy Shaw
have no clue 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 at 2:49 AM, Petr Pudlák petr@gmail.com wrote

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 petr@gmail.com wrote: Hi, I'm playing with “plugins”, trying to evaluate a simple expression: import Control.Monadimport

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 kiw...@debian.or.jp wrote: We are happy to announce Ajhc 0.8.0.7. You can program interrupt handler with

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

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] 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 corentin.dup...@gmail.com wrote: Hi haskellers! I am trying to make a DSL able to describe a voting system. That DSL should be able to describe many

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] 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 thegreendra...@gmail.com wrote: Hello all, I recognize this isn't directly a Haskell-related

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

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,

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

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 byor...@seas.upenn.edu 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. =)

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

2013-04-03 Thread Jeremy Shaw
I am pleased to annouce the release of adobe-swatch-exchange 0.1.0.0. My primary motivation in writing this is to make it easier to download color swatches from http://kuler.adobe.com/ and test them on my site. Though, perhaps there is already a great way of doing this and I didn't look hard

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

[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

[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

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 care...@mcmaster.ca 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) - ParserSpec a FMap:: (a - b

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

2013-03-12 Thread Jeremy Shaw
]? Write the parser against 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 jer...@n

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

Re: [Haskell-cafe] Embedded haskell?

2013-02-20 Thread Jeremy Shaw
...@mired.org wrote: On Wed, Feb 20, 2013 at 4:01 PM, Jeremy Shaw jer...@n-heptane.com 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

Re: Error building ghc on raspberry pi.

2013-01-02 Thread Jeremy Shaw
My random guess is that /tmp is mounted using tmpfs (aka a RAM drive) and it got full. Try remounting /tmp to use the sdcard instead ? On Wed, Jan 2, 2013 at 7:32 PM, rocon...@theorem.ca wrote: I'm trying to build ghc-7.4.1 using ghc-7.4.1 on my raspberry pi (armv6l) and I get the following

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 phu...@amateurtopologist.com 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

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

Re: [Haskell-cafe] Hackage 2 maintainership

2012-06-25 Thread Jeremy Shaw
On Wed, Jun 20, 2012 at 11:06 AM, Ben Gamari bgamari.f...@gmail.com 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

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

[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

Re: [Haskell] [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
there's definitely room for two libraries. Cheers, Jasper On Tue, May 22, 2012 at 2:23 AM, Felipe Almeida Lessa felipe.le...@gmail.com wrote: On Mon, May 21, 2012 at 7:18 PM, Jeremy Shaw jer...@n-heptane.com wrote: I hope to do a full comparison of reform vs digestive-functors 0.3 vs yesod

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
there's definitely room for two libraries. Cheers, Jasper On Tue, May 22, 2012 at 2:23 AM, Felipe Almeida Lessa felipe.le...@gmail.com wrote: On Mon, May 21, 2012 at 7:18 PM, Jeremy Shaw jer...@n-heptane.com wrote: I hope to do a full comparison of reform vs digestive-functors 0.3 vs yesod

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

[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

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, Андрей Янкин yankin...@gmail.com wrote: Hi, I'm newbie and I've got a problem. I'm trying to

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

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 shawj...@msu.edu

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

Re: default instance for IsString

2012-04-22 Thread Jeremy Shaw
I have often wished for something like: {-# LANGUAGE StringLiteralsAs Text #-} where all string literals like: f = foo would be translated to: f = (fromString foo :: Text) I find that OverloadedStrings is too general and causes ambiguous type errors. Additionally, I seldom find that I have

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

Re: [Haskell] 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 jer...@n-heptane.com wrote: Hello! I am pleased to announce the release of plugins-1.5.2.1: http://hackage.haskell.org/package/plugins The plugins library provides

[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

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 jer...@n-heptane.com wrote: Hello! I am pleased to announce the release of plugins-1.5.2.1: http://hackage.haskell.org/package/plugins The plugins library provides

[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: acme-http

2012-04-01 Thread Jeremy Shaw
On Sun, Apr 1, 2012 at 12:48 PM, Michael Snoyman mich...@snoyman.com 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

Re: [Haskell-cafe] ANN: Happstack 7

2012-03-30 Thread Jeremy Shaw
On Fri, Mar 30, 2012 at 4:36 AM, Lennart Kolmodin kolmo...@gmail.comwrote: 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

[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

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

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 se...@trygub.com wrote: Dear

[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 jason.du...@gmail.com wrote: 2012/3/11 Jeremy Shaw jer...@n-heptane.com: Also

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.

[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

Re: [Haskell] ANNOUNCE: acid-state-0.6

2012-02-15 Thread Jeremy Shaw
I wrote a wiki page on how I have successfully done several acid-state 0.5 to 0.6 migrations: http://code.google.com/p/happstack/wiki/AcidState05to06 It's not very pretty. But it works. Basically you just created SafeCopy 0.5 *and* 0.6 instances for all your types, and then run the migrate

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 bgamari.f...@gmail.com wrote: Hey all, Those of you who follow the Haskell subreddit no doubt saw

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

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 mich...@schmong.org wrote: Does anyone know of a hackage mirror? It now occurs to me I should

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

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 heathmatl...@gmail.com wrote: I liked Go's mascot, and I figure it couldn't hurt to have our own. I spent the

Re: [Haskell-cafe] happstack file serving

2011-11-02 Thread Jeremy Shaw
On Tue, Nov 1, 2011 at 9:48 AM, Gary Klindt gary.kli...@googlemail.com 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

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

[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

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

Re: [Template-haskell] change in [d| |] and creating instances in template-haskell 2.7

2011-09-08 Thread Jeremy Shaw
...@haskell.org] On Behalf Of Jeremy Shaw | Sent: 07 September 2011 20:50 | To: template-hask...@haskell.org | Subject: [Template-haskell] change in [d| |] and creating instances in template- | haskell 2.7 | | Hello, | | I have some code that likes like this, which works in template- haskell | 2.5

Re: [Template-haskell] change in [d| |] and creating instances in template-haskell 2.7

2011-09-08 Thread Jeremy Shaw
Ah cool. I just patched the code so that it uses mkName explicitly for now since it is Happstack related code and I want it to work the most places possible. Thanks! - jeremy On Sep 8, 2011, at 12:07 PM, Simon Peyton-Jones wrote: | Yeah. I would expect this to work: | | inferBar2 ::

Re: [Haskell] ANNOUNCE: swapper: Transparently swapping data from in-memory structures to disk

2011-08-29 Thread Jeremy Shaw
Epic! Lemmih and I have talked about doing something like this in theory. But having it in reality is much, much better :) Have you considered switching to acid-state and safecopy? Future versions of happstack will use those instead of happstack-data and happstack-state. (And, there is no

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 jgoer...@complete.org wrote: Hello, I would like to announce new versions of the following: hslogger convertible HDBC

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

[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

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

2011-07-21 Thread Jeremy Shaw
, schrieb Jeremy Shaw: Hello, I am pleased to announce the release of two new libraries: boomerang and web-routes-boomerang. Does this have anything to do with: Boomerang: A bidirectional programming language for ad-hoc data http://www.seas.upenn.edu/~harmony/ ? If not, is it wise to name

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

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.

[Haskell] Haskell Web Framework Happstack 6 Released

2011-02-17 Thread Jeremy Shaw
, 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! Thanks! - jeremy shaw

[Haskell-cafe] Haskell Web Framework Happstack 6 Released

2011-02-17 Thread Jeremy Shaw
, 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! Thanks! - jeremy shaw

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: handleToFd without closing of the file descriptor

2011-01-30 Thread Jeremy Shaw
At line 206 of this file there is a withFd function that might suit your needs, https://patch-tag.com/r/mae/sendfile/snapshot/current/content/pretty/src/Network/Socket/SendFile/Internal.hs -- The Fd should not be used after the action returns because the -- Handler may be garbage collected and

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

2011-01-26 Thread Jeremy Shaw
On Wed, Jan 26, 2011 at 4:33 PM, Corentin Dupont corentin.dup...@gmail.com 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

Re: GHC 7.0.1 (or very strange dimensional-0.8.0.1) bug

2011-01-25 Thread Jeremy Shaw
There is a weird type-checking bug in 7.0.1 that causes loopy behavior: http://hackage.haskell.org/trac/ghc/ticket/4809 Not sure if that is what is happening to you or not. Though in my experience it did not actually print loop, it just hung. - jeremy On Jan 25, 2011, at 10:48 AM, Pavel

[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

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

2011-01-24 Thread Jeremy Shaw
and password), can I? Thanks, Corentin On Sat, Jan 22, 2011 at 9:49 PM, Jeremy Shaw jer...@n-heptane.com wrote: Hello, I believe you problem is because you are trying to use 'dir' inside RouteT after you have already consumed and decode the path info using implSite. There are two solutions

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

2011-01-22 Thread Jeremy Shaw
, Jeremy Shaw jer...@n-heptane.com wrote: Hello, trhsx will be installed in ~/.cabal/bin, so you will need to add that to your PATH. In order to use the demo code I provided you would need the latest happstack from darcs because it contains a few differences in the API. The code can be made

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

2011-01-18 Thread Jeremy Shaw
, but I can't install some packages. 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, Jeremy Shaw jer...@n-heptane.com wrote

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

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
On Jan 17, 2011, at 2:19 PM, Corentin Dupont wrote: Indeed, I tried with META HTTP-EQUIV=Refresh CONTENT=n ? 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.

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

2011-01-09 Thread Jeremy Shaw
examples of programs using happstack + web-routes + formlets? Thanks, Corentin On Fri, Jan 7, 2011 at 5:10 PM, Jeremy Shaw jer...@n-heptane.com wrote: Hello, The [(String, String)] argument is for adding query parameters. encodePathInfo [foo, bar, baz] [(key,value)] foo/bar/baz

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

2010-12-20 Thread Jeremy Shaw
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 akam...@gmail.com wrote: On 17.12.2010 01:09, Jeremy Shaw wrote: Hello, You should use happstack-data for this (you do not need the other happstack components to use

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

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

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

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

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

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üß earth...@web.de wrote: Hi there, I

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

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 jer...@n-heptane.com wrote

[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 jer...@n-heptane.com wrote

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

2010-11-07 Thread Jeremy Shaw
for your help. Corentin On Fri, Nov 5, 2010 at 3:50 AM, Jeremy Shaw jer...@n-heptane.com 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 hopefully get you started. The example uses

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

[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

  1   2   3   4   5   >