[Haskell-cafe] SmallCheck and parser testing

2007-04-03 Thread Joel Reymont
Folks, I'm trying to figure out how to test a Parsec-based parser with Smallcheck [1]. My test AST is below and the goal is to return StyleValue Int here if the parser is fed an integer, or return Solid when parsing Solid, etc. data Style = StyleValue Expr | Solid | Dashed

Re: [Haskell-cafe] SmallCheck and parser testing

2007-04-03 Thread Spencer Janssen
On Tue, 3 Apr 2007 16:01:56 +0100 Joel Reymont [EMAIL PROTECTED] wrote: Folks, I'm trying to figure out how to test a Parsec-based parser with Smallcheck [1]. My test AST is below and the goal is to return StyleValue Int here if the parser is fed an integer, or return Solid when

Re: [Haskell-cafe] SmallCheck and parser testing

2007-04-03 Thread Paul Johnson
On Tue, 3 Apr 2007 16:01:56 +0100 Joel Reymont [EMAIL PROTECTED] wrote: Folks, I'm trying to figure out how to test a Parsec-based parser with Smallcheck [1]. My test AST is below and the goal is to return StyleValue Int here if the parser is fed an integer, or return Solid when parsing