Re: [Haskell-cafe] Problem with monadic formlets

2009-08-30 Thread Chris Eidhof
Hey everybody, I've just uploaded formlets 0.6.1 to Hackage, which should fix this bug. Thanks for letting me know! -chris On 29 aug 2009, at 13:22, Jeremy Shaw wrote: Hello, Yeah, it seems that checkM in formlets 0.6 broken. I reported the bug to MightByte as well. - jeremy At Fri,

Re: [Haskell-cafe] Problem with monadic formlets

2009-08-30 Thread Colin Paul Adams
Chris Hey everybody, I've just uploaded formlets 0.6.1 to Chris Hackage, which should fix this bug. Thanks for letting me Chris know! Yes, it does fix it. Thanks. -- Colin Adams Preston Lancashire ___ Haskell-Cafe mailing list

Re: [Haskell-cafe] Problem with monadic formlets

2009-08-29 Thread Jeremy Shaw
Hello, Yeah, it seems that checkM in formlets 0.6 broken. I reported the bug to MightByte as well. - jeremy At Fri, 28 Aug 2009 12:49:08 +0100, Colin Paul Adams wrote: Colin == Colin Paul Adams co...@colina.demon.co.uk writes: Jeremy == Jeremy Shaw jer...@n-heptane.com writes:

Re: [Haskell-cafe] Problem with monadic formlets

2009-08-29 Thread Jeremy Shaw
At Sat, 29 Aug 2009 15:46:42 +0100, Chris Eidhof (formlets) wrote: Confirmed. checkM is broken, thanks for noticing! I'll have a look into it, I'm not sure whether it can be fixed. I was thinking of removing all the monadic stuff from the formlets. I think this will make for a much

Re: [Haskell-cafe] Problem with monadic formlets

2009-08-28 Thread Colin Paul Adams
Jeremy == Jeremy Shaw jer...@n-heptane.com writes: Jeremy Hello, I hacked your code into a runnable example, and it Jeremy seems to work for me. Jeremy Which looks correct to me. Your code looks fine to me as Jeremy well... Perhaps the error is not in the code you pasted,

Re: [Haskell-cafe] Problem with monadic formlets

2009-08-28 Thread Colin Paul Adams
Colin == Colin Paul Adams co...@colina.demon.co.uk writes: Jeremy == Jeremy Shaw jer...@n-heptane.com writes: Colin apparent data corruprion is occurring. I am suspecting a Colin bug in the formlets library (I have version 0.6). Colin So I have created a slightly cut-down (no

[Haskell-cafe] Problem with monadic formlets

2009-08-27 Thread Colin Paul Adams
I'm trying to validate user input against a database (using HaskellDB, but that doesn't seem to be the problem, as replacing the database monadic code with return True gives the same problem. This is part of my code: register :: Database - XForm Registration --register db = Registration $

Re: [Haskell-cafe] Problem with monadic formlets

2009-08-27 Thread Jeremy Shaw
Hello, I hacked your code into a runnable example, and it seems to work for me. What happens if you do something like: let (c, xml, _) = runFormState [(input0,Left name), (input1, Left password), (input2, Left password) ] (register foo) in c = \r - do print xml print r (except you need to