#!/bin/sh set -e mcabal -r install die() { echo "TEST FAILED" exit 1 } dotest() { cat >Main.hs < reverse (reverse xs) === (xs :: [Int])' "OK, passed 100 tests." dotest Test.QuickCheck 'quickCheck $ \xs -> reverse xs === (xs :: [Int])' "\[0,1\]" echo echo 'All tests passed!'