arbitrary-haskell

Last updated: 2017-02-10 02:49:30 +0000

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

Repo

View repository

View issue tracker

Contents of 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.