aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Instances.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Instances.hs')
-rw-r--r--tests/Instances.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Instances.hs b/tests/Instances.hs
index 2f087f8..e52c5ec 100644
--- a/tests/Instances.hs
+++ b/tests/Instances.hs
@@ -11,6 +11,9 @@ import Data.List (nub, genericLength)
import Debug.Trace
+import Graphics.X11 (Rectangle(Rectangle))
+import Control.Applicative
+
--
-- The all important Arbitrary instance for StackSet.
--
@@ -79,6 +82,8 @@ instance Arbitrary NonEmptyWindowsStackSet where
arbitrary =
NonEmptyWindowsStackSet `fmap` (arbitrary `suchThat` (not . null . allWindows))
+instance Arbitrary Rectangle where
+ arbitrary = Rectangle <$> arbitrary <*> arbitrary <*> arbitrary <*> arbitrary
newtype SizedPositive = SizedPositive Int