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

2010-09-27 Thread Jasper Van der Jeugt
Hey Dave, You should check out this page (if you haven't already): http://haskell.org/haskellwiki/Web Cheers, Jasper On Sun, Sep 26, 2010 at 8:41 PM, Dave Hinton beaker...@googlemail.com wrote: There are 179 packages in the Web category on Hackage. It am finding it difficult, as someone who

Re: [Haskell-cafe] A model theory question

2010-09-27 Thread Patrick Browne
Alexander Solla wrote: On 09/26/2010 01:32 PM, Patrick Browne wrote: Bigger how? Under logical implication and its computational analogue? That is to say, do you want the model to be more SPECIFIC, describing a smaller class of objects more richly (i.e, with more logical implications to

[Haskell-cafe] Re: [Hackathon] BelHac: A Hackaton in Belgium, 5-7 November

2010-09-27 Thread Martijn van Steenbergen
I have just booked 5 beds in Hostel 47 in Ghent for our group. We will be staying in a 6-bed room, so there is still one bed available. If anyone is still looking for a bed in Ghent and wants to share a room with fellow Haskellers, that one bed might be an interesting choice. I told them we

Re: [Haskell-cafe] Candlestick charts

2010-09-27 Thread Tim Docker
On 25/09/10 06:57, rgowka1 wrote: What are the libraries to use in Haskell to generate a stock candlestick chart like http://stockcharts.com/h-sc/ui?s=SPYp=Db=5g=5id=p05007254056 I will use Finance-Quote-Yahoo to get the quote data from Yahoo. The chart library:

[Haskell-cafe] Help us test gtk2hs darcs!

2010-09-27 Thread Andy Stewart
Hi all, We have add many APIs in gtk2hs darcs, and ready to release gtk2hs-0.12.0 Please help us test gtk2hs darcs, we can fix it before release gtk2hs-0.12.0 You can get gtk2hs darcs with below command: darcs get code.haskell.org/gtk2hs Please send any bug report to

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread Henning Thielemann
Alexander Solla schrieb: I used a modified version of the best practices described by the Perl people for Perl code. Like things go under like things is the most important rule to follow. This rule, in other words, is a convention to make your code as tabular as possible. Also, most

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread Daniel Fischer
On Monday 27 September 2010 14:52:18, Henning Thielemann wrote: data Foo a b =      Foo    a    | Bar      b    | Foobar a b avoids this, at least for the type name Foo. Tastes vary, but I find that ugly. I much rather have the '=' aligned with the '|'. data Foo a b = Foo a |

[Haskell-cafe] Re: Coding conventions for Haskell?

2010-09-27 Thread Simon Michael
On 09/26/2010 09:41 PM, Alexander Solla wrote: Remember to treat values, functions, and monadic actions as servers that respond to your requests. This is the easiest way to maximize the value of Haskell's laziness. I haven't heard that one before. Could you give an example ?

Re: [Haskell-cafe] Re: Coding conventions for Haskell?

2010-09-27 Thread Victor Nazarov
On Mon, Sep 27, 2010 at 8:20 AM, Richard O'Keefe o...@cs.otago.ac.nz wrote: On Sep 27, 2010, at 5:31 AM, Maciej Piechotka wrote: May I ask clarification about formatting (according to your convention) doSomething :: (a - a - a) - a - a - a doSomething f x = f y y                  where y =

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread Evan Laforge
data Foo a b    = Foo      a    | Bar        b    | Foobar  a b      deriving (Eq, Ord) There, that looks good. There is a trap if you do a similar thing with records: data Foo = Foo { a :: Int , b :: Int } If you use '-- |' style haddock it can't go on 'a'. Since I tend to want

[Haskell-cafe] HackageDB: Haddock parse failure

2010-09-27 Thread Jonas Almström Duregård
HackageDB reports a build failure for happy-meta-0.1.1 (http://hackage.haskell.org/package/happy-meta-0.1.1), but from the log it seems that the failure occurs when building the documentation. The error is src/LALR.lhs:230:2: parse error on input `numberSets' I'm guessing there is no syntax

Re: [Haskell-cafe] HackageDB: Haddock parse failure

2010-09-27 Thread Ross Paterson
On Mon, Sep 27, 2010 at 06:22:09PM +0200, Jonas Almström Duregård wrote: Also, perhaps HackageDB should ignore errors in building the documentation? Currently the reported build failure propagates to the dependencies of the library... The only reason it's building is to generate the

[Haskell-cafe] Why can't libraries/frameworks like wxHaskell/gtk2hs/... be used with newer versions of ghc/wxWidgets/GTK+/... ?

2010-09-27 Thread caseyh
Why can't libraries/frameworks like wxHaskell/gtk2hs/... be used with newer versions of ghc/wxWidgets/GTK+/... ? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread Daniel Fischer
On Monday 27 September 2010 18:09:08, Evan Laforge wrote: data Foo a b    = Foo      a    | Bar        b    | Foobar  a b      deriving (Eq, Ord) There, that looks good. There is a trap if you do a similar thing with records: data Foo = Foo { a :: Int , b :: Int } If

Re: [Haskell-cafe] A model theory question

2010-09-27 Thread Alexander Solla
On 09/27/2010 12:25 AM, Patrick Browne wrote: Alexander Solla wrote: On 09/26/2010 01:32 PM, Patrick Browne wrote: / Bigger how? Under logical implication and its computational analogue? That is to say, do you want the model to be more SPECIFIC, describing a smaller class of objects more

Re: [Haskell-cafe] Why can't libraries/frameworks like wxHaskell/gtk2hs/... be used with newer versions of ghc/wxWidgets/GTK+/... ?

2010-09-27 Thread Bulat Ziganshin
Hello caseyh, Monday, September 27, 2010, 9:55:14 PM, you wrote: Why can't libraries/frameworks like wxHaskell/gtk2hs/... be used with newer versions of ghc/wxWidgets/GTK+/... ? because you don't compile from source code. ghc does massive inlining so parts of old ghc libraries are compiled

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread Andrew Coppin
On 27/09/2010 02:44 PM, Daniel Fischer wrote: On Monday 27 September 2010 14:52:18, Henning Thielemann wrote: data Foo a b = Fooa | Bar b | Foobar a b avoids this, at least for the type name Foo. Tastes vary, but I find that ugly. I much rather have the '=' aligned

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread Max Rabkin
On Mon, Sep 27, 2010 at 22:57, Andrew Coppin andrewcop...@btinternet.com wrote:  data Foo a b =      Foo    a   |      Bar      b |      Foobar a b    deriving (Eq, Ord) It honestly annoys me that Haddock disagrees with me on this point... I disagree with you too, and so does your version

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread aditya siram
How do you guys indent long function arguments? I run into this all the time with the 'maybe' function which takes 3 arguments: maybe :: b - (a - b) - Maybe a - b I usually end up doing things like (pretend the arguments are aligned if you're not using a monospace font to view this): maybe

Re: [Haskell-cafe] parsec manyTill documentation question

2010-09-27 Thread Peter Schmitz
On Fri, Sep 24, 2010 at 9:28 PM, Evan Laforge qdun...@gmail.com wrote: simpleComment = do{ string !--                   ; manyTill anyChar (try (string --))                   } Note the overlapping parsers anyChar and string !--, and therefore the use of the try combinator. First, I would

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread John D. Ramsdell
I just see what Emacs Haskell mode suggests, and pick one of its suggestions. John ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread Gregory Collins
Evan Laforge qdun...@gmail.com writes: As for other stuff, I don't like the vertical lining up thing. It's too much work to type in, causes too much realigning when the top line changes, sometimes causes things to get too far right, and breaks entirely with proportional fonts. A plain

Re: [Haskell-cafe] parsec manyTill documentation question

2010-09-27 Thread Peter Schmitz
Stephen, Thanks much for the pointer to the examples in the sources; found them. (Its nice to learn from the coding style used by the authors.) -- Peter On Sat, Sep 25, 2010 at 12:34 AM, Stephen Tetley stephen.tet...@gmail.com wrote: On 25 September 2010 05:30, Evan Laforge qdun...@gmail.com

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread Evan Laforge
On Mon, Sep 27, 2010 at 2:09 PM, aditya siram aditya.si...@gmail.com wrote: How do you guys indent long function arguments? I run into this all the time with the 'maybe' function which takes 3 arguments: maybe :: b - (a - b) - Maybe a - b I usually end up doing things like (pretend the

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread Felipe Lessa
On Mon, Sep 27, 2010 at 6:28 PM, Gregory Collins g...@gregorycollins.net wrote: Also, if you're reading code in a proportional font, you're doing it wrong. You may have nice codes using proportional fonts using LaTeX package 'listings'. Even in a proportional font it lines things up. Note,

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread Evan Laforge
I'm going to go ahead and offer a contrary viewpoint -- lining up code vertically makes it so much easier to read that the extra work involved I haven't noticed it being easier to read, but I don't like syntax highlighting either, and lots of people seem to like that too. Taste is taste.

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread Brandon S Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/27/10 17:07 , Max Rabkin wrote: On Mon, Sep 27, 2010 at 22:57, Andrew Coppin andrewcop...@btinternet.com wrote: data Foo a b = Fooa | Bar b | Foobar a b deriving (Eq, Ord) Also, either your pipes don't

Re: [Haskell-cafe] Why can't libraries/frameworks like wxHaskell/gtk2hs/... be used with newer versions of ghc/wxWidgets/GTK+/... ?

2010-09-27 Thread John Millikin
On Mon, Sep 27, 2010 at 10:55, cas...@istar.ca wrote: Why can't libraries/frameworks like wxHaskell/gtk2hs/... be used with newer versions of ghc/wxWidgets/GTK+/... ? Haskell libraries statically link many parts of the Haskell runtime; you can't combine two libraries compiled with different

Re: [Haskell-cafe] Help to create a function to calculate a n element moving average ??

2010-09-27 Thread Richard O'Keefe
On 27/09/2010, at 5:20 AM, rgowka1 wrote: Type signature would be Int - [Double] - [(Double,Double)] Any thoughts or ideas on how to calculate a n-element moving average of a list of Doubles? Let's say [1..10]::[Double] what is the function to calculate the average of the 3 elements?

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread Donn Cave
Quoth Brandon S Allbery KF8NH allb...@ece.cmu.edu, ... They line up fine in a fixed width font. Programming in any indentation-sensitive language in a proportional font leads inevitably to use of tabs to make things line up properly, which leads directly to pain. I haven't noticed urgent

Re: [Haskell-cafe] Re: Can't make a derived instance of `Typeable (A B)': `A' has arguments of kind other than `*'

2010-09-27 Thread Ryan Ingram
There is added complication because there are two possible extensions that can derive that instance: either GeneralizedNewtypeDeriving or DerivingDataTypeable. I think the latter always wins (which makes sense, it's probably what you want). -- ryan On Fri, Sep 24, 2010 at 1:41 PM, Christopher

Re: [Haskell-cafe] Coding conventions for Haskell?

2010-09-27 Thread Evan Laforge
Also, either your pipes don't line up, or you violate your own rule They line up fine in a fixed width font.  Programming in any indentation-sensitive language in a proportional font leads inevitably to use of tabs to make things line up properly, which leads directly to pain. I write