arbitrary-haskell

Last updated: 2019-01-08 08:19:33 +0000

Upstream URL: git clone http://chriswarbo.net/git/arbitrary-haskell.git

Repo

View repository

View issue tracker

Contents of README follows


Arbitrary Haskell

This Haskell library provides an instance of QuickCheck’s Arbitrary typeclass, which produces Strings of Haskell code.

Specifically, we define newtype Haskell = H String, and give it an instance of Arbitrary which orchestrates the generation of well-typed Haskell expressions (using the haskell-generate library) then pretty-prints the results.