hgeometry-0.8.0.0: Geometric Algorithms, Data structures, and Data types.

Copyright(C) Frank Staals
Licensesee the LICENSE file
MaintainerFrank Staals
Safe HaskellNone
LanguageHaskell2010

Test.QuickCheck.HGeometryInstances

Contents

Description

Arbitrary instances for most geometry types in HGeometry

Orphan instances

Arbitrary Direction Source # 
Instance details

Arbitrary a => Arbitrary (BinaryTree a) Source # 
Instance details

(Arbitrary a, Ord a) => Arbitrary (OrdSeq a) Source # 
Instance details

Methods

arbitrary :: Gen (OrdSeq a) #

shrink :: OrdSeq a -> [OrdSeq a] #

(Arbitrary r, Ord r) => Arbitrary (Range r) Source # 
Instance details

Methods

arbitrary :: Gen (Range r) #

shrink :: Range r -> [Range r] #

Arbitrary r => Arbitrary (EndPoint r) Source # 
Instance details

Methods

arbitrary :: Gen (EndPoint r) #

shrink :: EndPoint r -> [EndPoint r] #

(Arbitrary a, Arbitrary v) => Arbitrary (BinLeafTree v a) Source # 
Instance details

Methods

arbitrary :: Gen (BinLeafTree v a) #

shrink :: BinLeafTree v a -> [BinLeafTree v a] #

(Arbitrary c, Arbitrary e) => Arbitrary (c :+ e) Source # 
Instance details

Methods

arbitrary :: Gen (c :+ e) #

shrink :: (c :+ e) -> [c :+ e] #

(Arbitrary r, Arity d) => Arbitrary (Vector d r) Source # 
Instance details

Methods

arbitrary :: Gen (Vector d r) #

shrink :: Vector d r -> [Vector d r] #

(Arbitrary r, Arity d) => Arbitrary (Point d r) Source # 
Instance details

Methods

arbitrary :: Gen (Point d r) #

shrink :: Point d r -> [Point d r] #

(Arbitrary r, Arity d, Num r, Eq r) => Arbitrary (Line d r) Source # 
Instance details

Methods

arbitrary :: Gen (Line d r) #

shrink :: Line d r -> [Line d r] #

(KnownNat n, Arbitrary a) => Arbitrary (LSeq n a) Source # 
Instance details

Methods

arbitrary :: Gen (LSeq n a) #

shrink :: LSeq n a -> [LSeq n a] #

Arbitrary (Dart s) Source # 
Instance details

Methods

arbitrary :: Gen (Dart s) #

shrink :: Dart s -> [Dart s] #

Arbitrary (Arc s) Source # 
Instance details

Methods

arbitrary :: Gen (Arc s) #

shrink :: Arc s -> [Arc s] #

(Arbitrary r, Arbitrary p, Ord r, Ord p) => Arbitrary (Interval p r) Source # 
Instance details

Methods

arbitrary :: Gen (Interval p r) #

shrink :: Interval p r -> [Interval p r] #

(Arbitrary r, Arity d, Ord r) => Arbitrary (Box d () r) Source # 
Instance details

Methods

arbitrary :: Gen (Box d () r) #

shrink :: Box d () r -> [Box d () r] #

(Arbitrary r, Arbitrary p, Arity d) => Arbitrary (LineSegment d p r) Source # 
Instance details

Methods

arbitrary :: Gen (LineSegment d p r) #

shrink :: LineSegment d p r -> [LineSegment d p r] #

(Arbitrary r, Arbitrary p, Arbitrary s, Arity d, Ord r, Ord s, Ord p, Num r) => Arbitrary (SubLine d p s r) Source # 
Instance details

Methods

arbitrary :: Gen (SubLine d p s r) #

shrink :: SubLine d p s r -> [SubLine d p s r] #