Re: [Haskell-cafe] ghc 7.2.1 Generics problem

2011-11-01 Thread Andres Löh
Hi.  I do not know why, my ghc 7.2.1 does not seem to support DeriveRepresentable. I compiled the ghc 7.2.1 myself by ghc 7.0.4. All options default. $ ghc Types/TopTalkerRecord.hs Types/TopTalkerRecord.hs:2:14:    Unsupported extension: DeriveRepresentable There's no extension of that

Re: [Haskell-cafe] ghc 7.2.1 Generics problem

2011-11-01 Thread Ivan Lazar Miljenovic
On 1 November 2011 16:07, Magicloud Magiclouds magicloud.magiclo...@gmail.com wrote: Hi,  I do not know why, my ghc 7.2.1 does not seem to support DeriveRepresentable. I compiled the ghc 7.2.1 myself by ghc 7.0.4. All options default. $ ghc Types/TopTalkerRecord.hs

Re: [Haskell-cafe] blog software in Haskell?

2011-11-01 Thread Jason Dagit
On Mon, Oct 31, 2011 at 2:14 AM, Ketil Malde ke...@malde.org wrote: Hi, I just upgraded my server, and set up everything again.  Except wordpress, as 1) I'm not too fond of its user interface, and 2) it's a big pile of PHP, difficult to keep updated, and basically a disaster waiting to

Re: [Haskell-cafe] Amazon AWS storage best to use with Haskell?

2011-11-01 Thread dokondr
On Tue, Nov 1, 2011 at 5:03 AM, Ryan Newton rrnew...@gmail.com wrote: Any example code of using hscassandra package would really help! I'll ask my student. We may have some simple examples. Also, I have no idea as to their quality but I was pleasantly surprised to find three different

Re: [Haskell-cafe] Amazon AWS storage best to use with Haskell?

2011-11-01 Thread Neil Davies
We use all three (in various ways as they have arrived on the scene over time) in production systems. On 1 Nov 2011, at 02:03, Ryan Newton wrote: Any example code of using hscassandra package would really help! I'll ask my student. We may have some simple examples. Also, I have no

Re: [Haskell-cafe] Amazon AWS storage best to use with Haskell?

2011-11-01 Thread Neil Davies
Word of caution Understand the semantics (and cost profile) of the AWS services first - you can't just open a HTTP connection and dribble data out over several days and hope for things to work. It is not a system that has that sort of laziness at its heart. AWS doesn't supply a traditional

Re: [Haskell-cafe] Organizing big repository

2011-11-01 Thread Alexander Bernauer
Hi On Thu, Oct 27, 2011 at 08:02:58PM +0300, Konstantin Litvinenko wrote: Having program 'foo' depends on lib 'bar' I want to edit some files in 'bar' than build 'foo' and get 'bar' rebuilt and 'foo' rebuilt/relink. How can I do this? I use cabal-dev [1] along with the react tool [2]. The

[Haskell-cafe] LDTA 2012: Call for Papers

2011-11-01 Thread Anya Helene Bagge
LDTA 2012 Call for Papers 12th International Workshop on Language Descriptions, Tools, and Applications www.ldta.info Tallinn, Estonia March 31 April 1, 2012

Re: [Haskell-cafe] Amazon AWS storage best to use with Haskell?

2011-11-01 Thread dokondr
On Tue, Nov 1, 2011 at 10:53 AM, Neil Davies semanticphilosop...@gmail.comwrote: Word of caution Understand the semantics (and cost profile) of the AWS services first - you can't just open a HTTP connection and dribble data out over several days and hope for things to work. It is not a

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Ketil Malde
Yitzchak Gale g...@sefer.org writes: Gregory Crosswhite wrote: could [Hackage] have a feature where when a working package breaks with a new version of GHC the author is automatically e-mailed? This would be nice. However, there would have to be a way for it to be turned on and off by the

Re: [Haskell-cafe] ghc 7.2.1 Generics problem

2011-11-01 Thread Magicloud Magiclouds
On Tue, Nov 1, 2011 at 1:59 PM, Andres Löh andres.l...@googlemail.com wrote: Hi.  I do not know why, my ghc 7.2.1 does not seem to support DeriveRepresentable. I compiled the ghc 7.2.1 myself by ghc 7.0.4. All options default. $ ghc Types/TopTalkerRecord.hs Types/TopTalkerRecord.hs:2:14:

Re: [Haskell-cafe] ghc 7.2.1 Generics problem

2011-11-01 Thread José Pedro Magalhães
Oh, right, I see that some things on that page need updating; I'll do so. Thanks, Pedro On Tue, Nov 1, 2011 at 09:33, Magicloud Magiclouds magicloud.magiclo...@gmail.com wrote: On Tue, Nov 1, 2011 at 1:59 PM, Andres Löh andres.l...@googlemail.com wrote: Hi. I do not know why, my ghc

[Haskell-cafe] Problem with TemplateHaskell

2011-11-01 Thread Magicloud Magiclouds
Hi, I have code as following, to make a toDocument function (using Data.Bsin.=:) for a data structure. bson :: DecsQ - DecsQ bson decsq = do decs - decsq let datad = head decs DataD _ _ _ cons _ = datad to = mkName toDocument from = mkName fromDocument fund - mapM (\con

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Conrad Parker
On 1 November 2011 03:43, Alexander Kjeldaas alexander.kjeld...@gmail.com wrote: On 31 October 2011 17:22, Yitzchak Gale g...@sefer.org wrote: Gregory Crosswhite wrote: could [Hackage] have a feature where when a working package breaks with a new version of GHC the author is

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Max Bolingbroke
On 1 November 2011 09:00, Ketil Malde ke...@malde.org wrote: This is where it stranded the last time, IIRC.  That sentiment makes me a bit uneasy; so you are the official maintainer of a package on Hackage, but you do not want to hear about it when it fails to compile? Don't forget that some

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread José Pedro Magalhães
On Tue, Nov 1, 2011 at 09:43, Conrad Parker con...@metadecks.org wrote: On 1 November 2011 03:43, Alexander Kjeldaas alexander.kjeld...@gmail.com wrote: On 31 October 2011 17:22, Yitzchak Gale g...@sefer.org wrote: Gregory Crosswhite wrote: could [Hackage] have a feature where when a

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Yitzchak Gale
I wrote: This would be nice. However, there would have to be a way for it to be turned on and off by the author. (Spam is not nice.) Ketil Malde wrote: This is where it stranded the last time, IIRC.  That sentiment makes me a bit uneasy; so you are the official maintainer of a package on

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Ketil Malde
Max Bolingbroke batterseapo...@hotmail.com writes: This is where it stranded the last time, IIRC.  That sentiment makes me a bit uneasy; so you are the official maintainer of a package on Hackage, but you do not want to hear about it when it fails to compile? Don't forget that some packages

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Max Bolingbroke
On 1 November 2011 10:14, Ketil Malde ke...@malde.org wrote: So, I'd *love* to get an email when my packages fail to build, but I will accept that other people have a more sensitive relationship with their inbox.  (I assume that the people who raise this objection - Max and Yitzchak - belong

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Brandon Allbery
On Tue, Nov 1, 2011 at 06:14, Ketil Malde ke...@malde.org wrote: Max Bolingbroke batterseapo...@hotmail.com writes: This is where it stranded the last time, IIRC. That sentiment makes me a bit uneasy; so you are the official maintainer of a package on Hackage, but you do not want to hear

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Ketil Malde
Yitzchak Gale g...@sefer.org writes: I am just a little worried that if uploading to Hackage requires agreeing to unlimited uncontrollable spamming by a bot, The bot would, of course, be implemented in Haskell. Anybody who still worries about bugs, is free to implement a better one in Agda.

Re: [Haskell-cafe] arr considered harmful

2011-11-01 Thread Serguey Zefirov
2011/11/1 Ryan Ingram ryani.s...@gmail.com: For example, I would love to be able to use the arrow syntax to define objects of this type: data Circuit a b where     Const :: Bool - Circuit () Bool     Wire :: Circuit a a     Delay :: Circuit a a     And :: Circuit (Bool,Bool) Bool     Or

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Ivan Lazar Miljenovic
On 1 November 2011 21:35, Ketil Malde ke...@malde.org wrote: or even  Maintainer: Ketil Malde ketil at malde dot org  -- email me if you are human Though unless the hackage email bot is smart enough, this will result in a lot of unsendable emails... -- Ivan Lazar Miljenovic

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Paul R
On 1 November 2011 21:35, Ketil Malde ke...@malde.org wrote: or even  Maintainer: Ketil Malde ketil at malde dot org  -- email me if you are human Though unless the hackage email bot is smart enough, this will result in a lot of unsendable emails... But the bot is not a human, so that's

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Daniel Díaz Casanueva
How about to a new optional Cabal field like mail-report? (don't bother about this name, I chose it randomly) If a build failure happens, or there is some relevant information about your package, Hackage will send a mail to the direction specified in that field. A field which content will NOT

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Nick Bowler
On 2011-11-01 12:59 +0100, Daniel Díaz Casanueva wrote: How about to a new optional Cabal field like mail-report? (don't bother about this name, I chose it randomly) If a build failure happens, or there is some relevant information about your package, Hackage will send a mail to the

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Brandon Allbery
On Tue, Nov 1, 2011 at 08:24, Nick Bowler nbow...@elliptictech.com wrote: On 2011-11-01 12:59 +0100, Daniel Díaz Casanueva wrote: How about to a new optional Cabal field like mail-report? (don't bother about this name, I chose it randomly) Doing anything like this in the .cabal file is a

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Daniel Díaz Casanueva
Then, the mailing list seems to be an option. But then I will receive mails for every package, and there is a lot of packages! Is not a lot of mails this? There is another work around? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Paterson, Ross
Daniel Díaz Casanueva writes: How about to a new optional Cabal field like mail-report? (don't bother about this name, I chose it randomly) If a build failure happens, or there is some relevant information about your package, Hackage will send a mail to the direction specified in that

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Conrad Parker
On Nov 1, 2011 8:45 PM, Daniel Díaz Casanueva dhelta.d...@gmail.com wrote: Then, the mailing list seems to be an option. But then I will receive mails for every package, and there is a lot of packages! Is not a lot of mails this? There is another work around? Nobody would read every build

Re: [Haskell-cafe] arr considered harmful

2011-11-01 Thread David Barbour
On Mon, Oct 31, 2011 at 5:33 PM, Ryan Ingram ryani.s...@gmail.com wrote: For example, I would love to be able to use the arrow syntax to define objects of this type: data Circuit a b where Const :: Bool - Circuit () Bool Wire :: Circuit a a Delay :: Circuit a a And ::

Re: [Haskell-cafe] How to implement digital filters using Arrows

2011-11-01 Thread Captain Freako
On Mon, Oct 31, 2011 at 3:19 PM, John Lask jvl...@hotmail.com wrote: On 1/11/2011 1:35 AM, Captain Freako wrote: you need to study ArrowLoop and understand that. Thanks, John. I'm working my way through Hughes' suggested exercise in `Programming with Arrows', to wit: The reader who finds

[Haskell-cafe] happstack file serving

2011-11-01 Thread Gary Klindt
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 tried: main = simpleHTTP nullConf $ msum [ serveFile

Re: [Haskell-cafe] happstack file serving

2011-11-01 Thread Antoine Latter
Hi Gary, A convention I use in my top-level handler is: simpleHTTP nullConf $ msum [ dynamic content handler , serveDirectory DisableBrowsing [] static , 404 handler ] where 'serveDirectory' is a function that ships with happstack-server and

Re: [Haskell-cafe] happstack file serving

2011-11-01 Thread Gary Klindt
Hey Antoine, thank you for answering. Your strategy is quite similar to the one I prefer. I misunderstood the behaviour of serveDirectory. The problem with external javascript files is solved. The other problem I had, was, that the argument 'msum' is a list, which has elements with the same

[Haskell-cafe] HDBC SQLite error

2011-11-01 Thread Jurriën Stutterheim
Hi all, I have recently switched one of my web applications to SQLite via HDBC. I use it to store some user credentials and data. Initially it seemed to work fine, until I tried logging in from two different browsers. That's when I got the following error when trying to log in: SqlError

[Haskell-cafe] happstack file serving

2011-11-01 Thread Antoine Latter
Including list. -- Forwarded message -- From: Antoine Latter aslat...@gmail.com Date: Tue, Nov 1, 2011 at 11:33 AM Subject: Re: [Haskell-cafe] happstack file serving To: Gary Klindt gary.kli...@googlemail.com On Tue, Nov 1, 2011 at 11:24 AM, Gary Klindt

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Jason Dagit
On Tue, Nov 1, 2011 at 2:45 AM, Max Bolingbroke batterseapo...@hotmail.com wrote: On 1 November 2011 09:00, Ketil Malde ke...@malde.org wrote: This is where it stranded the last time, IIRC.  That sentiment makes me a bit uneasy; so you are the official maintainer of a package on Hackage, but

Re: [Haskell-cafe] HDBC SQLite error

2011-11-01 Thread Alexander Danilov
01.11.2011 20:30, Jurriën Stutterheim пишет: Hi all, I have recently switched one of my web applications to SQLite via HDBC. I use it to store some user credentials and data. Initially it seemed to work fine, until I tried logging in from two different browsers. That's when I got the

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Paul R
Ross A field in the .cabal file is just as available to bots as Ross a field on the package page. Yes, absolutly. There are at least one easy solution for this problem : having a server-side user model that is related to packages, or to packages versions, indicating wich user is the maintainer

Re: [Haskell-cafe] How to implement digital filters using Arrows

2011-11-01 Thread Captain Freako
Hi John, I'm trying to use the GHCI debugger on this code: 20 instance ArrowLoop SF where 21 loop (SF f) = SF $ \as - 22 let (bs, cs) = unzip (f (zip as (stream cs))) in bs 23 where stream ~(x:xs) = x : stream xs 24 25 swap :: (a,b) - (b,a) 26 swap (x,y) = (y,x) in

Re: [Haskell-cafe] blog software in Haskell?

2011-11-01 Thread Simon Michael
Did someone mention hakyll already ? For the record, this is a nice recent blog built with it: http://www.skybluetrades.net/posts/2011/10/21/hakyll-setup.html ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] arr considered harmful

2011-11-01 Thread Ryan Ingram
On Tue, Nov 1, 2011 at 3:36 AM, Serguey Zefirov sergu...@gmail.com wrote: 2011/11/1 Ryan Ingram ryani.s...@gmail.com: Would you mind give me some examples on how you desribe real circuits with that abstraction and, especially, an Arrow instance (even imaginary one)? Sure, here's a simple SR

Re: [Haskell-cafe] arr considered harmful

2011-11-01 Thread Ryan Ingram
On Mon, Oct 31, 2011 at 6:52 PM, Paterson, Ross r.pater...@city.ac.ukwrote: If you require the circuit to be parametric in the value types, you can limit the types of function you can pass to arr to simple plumbing. See the netlist example at the end of my Fun of Programming slides (

[Haskell-cafe] Persistent Concurrent Data Structures

2011-11-01 Thread dokondr
Hi, Please comment on the idea and advise on steps to implement it. Real world applications need persistent data, that can be accessed and modified concurrently by several clients, in a way that preserves happen-before relationship. Idea: Design and implement Persistent Concurrent Data Types in

Re: [Haskell-cafe] How to implement digital filters using Arrows

2011-11-01 Thread Ryan Ingram
Try swap p = (snd p, fst p) or, equivalently swap ~(x,y) = (y,x) -- ryan On Tue, Nov 1, 2011 at 1:30 PM, Captain Freako capn.fre...@gmail.comwrote: Hi John, I'm trying to use the GHCI debugger on this code: 20 instance ArrowLoop SF where 21 loop (SF f) = SF $ \as - 22

Re: [Haskell-cafe] How to implement digital filters using Arrows

2011-11-01 Thread Ryan Ingram
Never mind, I misread the code, 'zip' and the lazy definition of stream should add the necessary laziness. -- ryan On Tue, Nov 1, 2011 at 3:36 PM, Ryan Ingram ryani.s...@gmail.com wrote: Try swap p = (snd p, fst p) or, equivalently swap ~(x,y) = (y,x) -- ryan On Tue, Nov 1, 2011

Re: [Haskell-cafe] How to implement digital filters using Arrows

2011-11-01 Thread John Lask
I can't comment on using ghci debugger to observe evaluation. I have in the past used hood (http://hackage.haskell.org/package/hood) and found it both convenient and useful when trying to observe evaluation order. On 2/11/2011 7:00 AM, Captain Freako wrote: Hi John, I'm trying to use the

Re: [Haskell-cafe] How to implement digital filters using Arrows

2011-11-01 Thread Ryan Ingram
First, let's lay out our definitions: unzip [] = ([], []) unzip ((x,y):xys) = (x:xs, y:ys) where (xs,ys) = unzip xys zip [] _ = [] zip _ [] = [] zip (x:xs) (y:ys) = (x,y) : zip xs ys map _ [] = [] map f (x:xs) = f x : map f xs stream ~(a:as) = a : stream as -- equivalently stream xs = head xs

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

Re: [Haskell-cafe] Persistent Concurrent Data Structures

2011-11-01 Thread Evan Laforge
So I guess you're talking about imperative mutated data structures (which is btw the opposite of what persistence usually means in haskell). It seems like switching data storage would be as easy or hard as you've been able to abstract it, e.g. if you can put everything through 'get' and 'put'

Re: [Haskell-cafe] Persistent Concurrent Data Structures

2011-11-01 Thread David Barbour
Several of the Haskell web server frameworks (Yesod, HAppS, etc.) come with persistence support. I believe you're taking the wrong approach here, with respect to `modified concurrently` and the like. What does it mean for a Data.List to be 'modified concurrently'? If you need concurrency, first

Re: [Haskell-cafe] Persistent Concurrent Data Structures

2011-11-01 Thread Alberto G. Corona
hi Dimitri Take a look at TCache. It is a transactional cache with configurable persistence. http://hackage.haskell.org/package/TCache It defines persistent TVars (DBRef`s) with similar primitives. Persistence can be defined by the user for each datatype by an instance declaration. There is a

Re: [Haskell-cafe] Persistent Concurrent Data Structures

2011-11-01 Thread dokondr
Thanks everybody for advice! I'll try to clarify what I mean by persistence and concurrent access that preserves happens-before relationship. 1) Persistence - imagine Haskell run-time executing in infinite physical memory. My idea is to implement really huge, almost infinite memory in the cloud

Re: [Haskell-cafe] Persistent Concurrent Data Structures

2011-11-01 Thread dokondr
On Wed, Nov 2, 2011 at 3:12 AM, dokondr doko...@gmail.com wrote: Thanks everybody for advice! I'll try to clarify what I mean by persistence and concurrent access that preserves happens-before relationship. 1) Persistence - imagine Haskell run-time executing in infinite physical memory. My

Re: [Haskell-cafe] Hackage feature request: E-mail author when a package breaks

2011-11-01 Thread Diego Souza
The perl community has something really interesting for quite long time: http://wiki.cpantesters.org/wiki/HomePage Or more specifically: http://matrix.cpantesters.org/?dist=DBI The idea is simple: there are many different platforms that would be to expensive for one to support. So they ask the