Re: [Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters

2008-09-07 Thread david48
On Fri, Sep 5, 2008 at 1:05 PM, Janis Voigtlaender [EMAIL PROTECTED] wrote: See John's comment, right there in the online version: The system that generated this webpage didn't have HDBC installed at the time. We'll get that fixed and re-post this chapter. In the meantime, unfortunately, all

[Haskell-cafe] Re: the real world of Haskell books (Re: Online Real World Haskell, problem with Sqlite3 chapters)

2008-09-06 Thread Gour
Bryan == Bryan O'Sullivan [EMAIL PROTECTED] writes: Bryan Other tech books face the same problem, which, if they sell Bryan successfully and the authors haven't moved into caves afterwards Bryan to recover, they address with subsequent editions. If readers Bryan find that specific pieces of

[Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters

2008-09-05 Thread david48
In the online version of Real world Haskell, there's a problem with examples in ghci when the module Database.HDBC.Sqlite3 is imported. It goes on like this for all of chapter 21 and 22. Example : ( note: this is not me trying to reproduce the examples, it's an actual copy paste from the site

Re: [Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters

2008-09-05 Thread Janis Voigtlaender
See John's comment, right there in the online version: The system that generated this webpage didn't have HDBC installed at the time. We'll get that fixed and re-post this chapter. In the meantime, unfortunately, all of the examples on this page will look that way. david48 wrote: In the online

the real world of Haskell books (Re: [Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters)

2008-09-05 Thread Claus Reinke
Now that is real world - problems even before release!-) Seriously, though, what is the RWH authors' plan for tackling the eternal frustration of Haskell book authors, a moving target? There used to be a time when one could guess the poster's Haskell book from their question topics: - 'HGL'

Re: the real world of Haskell books (Re: [Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters)

2008-09-05 Thread Duncan Coutts
On Fri, 2008-09-05 at 13:04 +0100, Claus Reinke wrote: Now that is real world - problems even before release!-) Seriously, though, what is the RWH authors' plan for tackling the eternal frustration of Haskell book authors, a moving target? There used to be a time when one could guess the

Re: the real world of Haskell books (Re: [Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters)

2008-09-05 Thread Ross Paterson
On Fri, Sep 05, 2008 at 01:04:03PM +0100, Claus Reinke wrote: Seriously, though, what is the RWH authors' plan for tackling the eternal frustration of Haskell book authors, a moving target? There used to be a time when one could guess the poster's Haskell book from their question topics:

Re: the real world of Haskell books (Re: [Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters)

2008-09-05 Thread John Goerzen
On Fri, Sep 05, 2008 at 01:04:03PM +0100, Claus Reinke wrote: Now that is real world - problems even before release!-) Seriously, though, what is the RWH authors' plan for tackling the eternal frustration of Haskell book authors, a moving target? Hope that enough copies are sold that O'Reilly

Re: the real world of Haskell books (Re: [Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters)

2008-09-05 Thread Bryan O'Sullivan
On Fri, Sep 5, 2008 at 5:04 AM, Claus Reinke [EMAIL PROTECTED] wrote: Seriously, though, what is the RWH authors' plan for tackling the eternal frustration of Haskell book authors, a moving target? Other tech books face the same problem, which, if they sell successfully and the authors haven't

Re: [Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters

2008-09-05 Thread Bryan O'Sullivan
On Fri, Sep 5, 2008 at 3:45 AM, david48 [EMAIL PROTECTED] wrote: In the online version of Real world Haskell, there's a problem with examples in ghci when the module Database.HDBC.Sqlite3 is imported. Oops, should be fixed now. ___ Haskell-Cafe

Re: the real world of Haskell books (Re: [Haskell-cafe] Online RealWorld Haskell, problem with Sqlite3 chapters)

2008-09-05 Thread Claus Reinke
Seriously, though, what is the RWH authors' plan for tackling the eternal frustration of Haskell book authors, a moving target? Other tech books face the same problem, which, if they sell successfully and the authors haven't moved into caves afterwards to recover, they address with subsequent

Re: the real world of Haskell books (Re: [Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters)

2008-09-05 Thread Brandon S. Allbery KF8NH
On 2008 Sep 5, at 12:45, Bryan O'Sullivan wrote: On Fri, Sep 5, 2008 at 5:04 AM, Claus Reinke [EMAIL PROTECTED] wrote: Seriously, though, what is the RWH authors' plan for tackling the eternal frustration of Haskell book authors, a moving target? Other tech books face the same problem,

Re: the real world of Haskell books (Re: [Haskell-cafe] Online Real World Haskell, problem with Sqlite3 chapters)

2008-09-05 Thread Don Stewart
allbery: On 2008 Sep 5, at 12:45, Bryan O'Sullivan wrote: On Fri, Sep 5, 2008 at 5:04 AM, Claus Reinke [EMAIL PROTECTED] wrote: Seriously, though, what is the RWH authors' plan for tackling the eternal frustration of Haskell book authors, a moving target? Other tech books face the same

Re: the real world of Haskell books (Re: [Haskell-cafe] Online RealWorld Haskell, problem with Sqlite3 chapters)

2008-09-05 Thread Derek Elkins
On Fri, 2008-09-05 at 20:55 +0100, Claus Reinke wrote: Seriously, though, what is the RWH authors' plan for tackling the eternal frustration of Haskell book authors, a moving target? Other tech books face the same problem, which, if they sell successfully and the authors haven't moved

Re: the real world of Haskell books (Re: [Haskell-cafe] Online RealWorld Haskell, problem with Sqlite3 chapters)

2008-09-05 Thread Bryan O'Sullivan
On Fri, Sep 5, 2008 at 7:50 PM, Derek Elkins [EMAIL PROTECTED] wrote: To make what (I believe) Claus is saying more explicit and direct, add a note to the beginning of the book (or somewhere reasonably prominent) that states something along the lines [...] We will add a link to an errata site

Re: [Haskell-cafe] Template haskell problem - solved

2007-06-16 Thread Marc Weber
und n = AppE (VarE (mkName show)) (SigE (VarE (mkName undefined)) (ForallT [n] [] (VarT n))) -- undefined :: typePara using ForallT [] [] (... works fine. So this seems to be a th [| |] parser issue? I'll move this to the ghc mailinglist. (Thanks to Heffalump on #haskell) Marc

[Haskell-cafe] Template haskell problem

2007-06-15 Thread Marc Weber
I want to write a a template haskell function deriving show for data types without constructor. -- example -- data A a -- the derived instance: -- instance (Show a) = Show (A a) where -- show _ = A ++ show (undefined :: a) deriveShowNoConstructors :: Name - Q [ Dec ]

[Haskell-cafe] Re: Haskell problem please help

2004-12-16 Thread Christian Maeder
N.B. if you want a faster answer such questions are best posted to [EMAIL PROTECTED] My answer: I asume that your function all_rotations somehow needs to be called recursively for the rest of the input list xs. Cheers Christian imranazad wrote: Hi, im not very good with haskell, i barely know

[Haskell-cafe] Determining all rotations (Was: Haskell problem please help)

2004-12-16 Thread Henning Thielemann
imranazad wrote: Hi, im not very good with haskell, i barely know the basics, my coursework requires me to genereate a vigenere square... well anyway at the moment im trying to define a functin all_rotations which for any list returns the list of all its rotations, so far i've

Re: [Haskell-cafe] Determining all rotations (Was: Haskell problem please help)

2004-12-16 Thread Jon Fairbairn
On 2004-12-16 at 17:00+0100 Henning Thielemann wrote: imranazad wrote: Hi, im not very good with haskell, i barely know the basics, my coursework requires me to genereate a vigenere square... well anyway at the moment im trying to define a functin all_rotations which

[Haskell-cafe] Re: Haskell problem please help

2004-12-16 Thread M . I . Azad1
imranazad wrote: Hi, im not very good with haskell, i barely know the basics, my coursework requires me to genereate a vigenere square... well anyway at the moment im trying to define a functin all_rotations which for any list returns the list of all its rotations, so far i've made

Re: Haskell problem

2002-02-22 Thread Daan Leijen
Hi all, There exist a really neat solution to this. I think that it is pioneered by Doaitse Swierstra and Luc Duponcheel in their parser combinators: http://www.cs.uu.nl/~doaitse/Papers/1996/LL1.pdf I'm trying out some combinatorial parsers, and I ran into a slightly inelegant

Re: Haskell problem

2002-02-21 Thread Josef Svenningsson
On Thu, 21 Feb 2002, Mark Wotton wrote: Hi, I'm trying out some combinatorial parsers, and I ran into a slightly inelegant construction. To parse a sequence of things, we have a function like pThen3 :: (a-b-c-d) - Parser a - Parser b - Parser c - Parser d pThen3 combine p1 p2 p3 toks =

Haskell problem

2002-02-20 Thread Mark Wotton
Hi, I'm trying out some combinatorial parsers, and I ran into a slightly inelegant construction. To parse a sequence of things, we have a function like pThen3 :: (a-b-c-d) - Parser a - Parser b - Parser c - Parser d pThen3 combine p1 p2 p3 toks = [(combine v1 v2 v3, toks3) | (v1,

Haskell problem

2002-02-20 Thread Tom Pledger
Mark Wotton writes: | Hi, | | I'm trying out some combinatorial parsers, and I ran into a slightly | inelegant construction. To parse a sequence of things, we have a function | like | | pThen3 :: (a-b-c-d) - Parser a - Parser b - Parser c - Parser d | pThen3 combine p1 p2 p3 toks = |

Re: Haskell Problem

2000-10-10 Thread Leon Smith
What you need to do is write a function that operates on a string that does what you want it to, and then use that to write some top-level I/O code. If you have a function sortFile :: String - String, you would write something like this for main: main :: IO () main = do string -