Re: [Haskell] Monadic parser combinators with logging

2006-08-02 Thread Andrew Pimlott
On Thu, Aug 03, 2006 at 08:40:26AM +0200, Harald ROTTER wrote: > Thanks for the hint, I will try to implement the suggested monadic > structure. I realized perhaps I should have made the hint slightly more explicit by changing the name: newtype ParserT m a = ParserT { runParserT :: (PState ->

Re: [Haskell] Monadic parser combinators with logging

2006-08-02 Thread Harald ROTTER
Thanks for the hint, I will try to implement the suggested monadic structure. As for the MonadState declaration: If I put instance MonadState PState Parser then ghci complains: Illegal instance declaration for 'MonadState PState Parser' (The instance type must be of form

Re: [Haskell] Monadic parser combinators with logging

2006-08-02 Thread Andrew Pimlott
On Wed, Aug 02, 2006 at 10:52:14AM +0200, Harald ROTTER wrote: > newtype Parser a = Parser { runParser :: (PState -> [(a, PState)])} > > as the parsing monad with the Parser state "PState" that contains the > remaining input after matching and possibly some additional user defined > state element

[Haskell] Re: [Haskell-cafe] ANN: TextRegexLazy-0.56, (=~) and (=~~) are here

2006-08-02 Thread Chris Kuklewicz
Brian Hulley wrote: Chris Kuklewicz wrote: Announcing: TextRegexLazy version 0.56 Where: Tarball from http://sourceforge.net/projects/lazy-regex darcs get --partial http://evenmere.org/~chrisk/trl/stable/ License : BSD, except for Great! - Thanks for all your hard work in making this av

[Haskell] Re: [Haskell-cafe] ANN: TextRegexLazy-0.56, (=~) and (=~~) are here

2006-08-02 Thread Brian Hulley
Chris Kuklewicz wrote: Announcing: TextRegexLazy version 0.56 Where: Tarball from http://sourceforge.net/projects/lazy-regex darcs get --partial [--tag=0.56] http://evenmere.org/~chrisk/trl/stable/ License : BSD, except for Great! - Thanks for all your hard work in making this available

[Haskell] Re: [Haskell-cafe] ANN: TextRegexLazy-0.56, (=~) and (=~~) are here

2006-08-02 Thread Chris Kuklewicz
Ooops. I just patched the efficiency of ByteStringPCRE to agree with the original announcement. Use darcs get --partial http://evenmere.org/~chrisk/trl/stable/ to get the fixed version. A new 0.57 tarball will go to sourceforge soon. Chris Kuklewicz wrote: Announcing: TextRegexLazy version

[Haskell] ANN: TextRegexLazy-0.56, (=~) and (=~~) are here

2006-08-02 Thread Chris Kuklewicz
Announcing: TextRegexLazy version 0.56 Where: Tarball from http://sourceforge.net/projects/lazy-regex darcs get --partial [--tag=0.56] http://evenmere.org/~chrisk/trl/stable/ License : BSD, except for DFAEngine.hs which is LGPL (derived from CTK light) Development/unstable version is at:

[Haskell] Monadic parser combinators with logging

2006-08-02 Thread Harald ROTTER
Dear all, I am a Haskell newbie and I try to find my way through Monad territory. Actually I am studying the non-deterministic monadic parser combinators as descibed by Hutton and Meijer. Although I find this very elegant and concise I seem to have problems extending the parser monads. I use new

[Haskell] Monadic parser combinators with logging

2006-08-02 Thread Harald ROTTER
Dear all, I am a Haskell newbie and I try to find my way through Monad territory. Actually I am studying the non-deterministic monadic parser combinators as descibed by Hutton and Meijer. Although I find this very elegant and concise I seem to have problems extending the parser monads. I use new