quickspec-0.9: Equational laws for free

Safe HaskellSafe-Inferred

Test.QuickSpec.Utils.Typeable

Description

A wrapper around Typeable, to work around:

  1. The lack of an Ord instance in older GHCs,
  2. bug #5962 in new GHCs.

Synopsis

Documentation

class Typeable1 t

Variant for unary type constructors

Instances

class Typeable2 t

Variant for binary type constructors

Instances

Typeable2 (->) 
Typeable2 Either 
Typeable2 (,) 
Typeable2 ST 
Typeable2 UArray 
Typeable2 Array 
Typeable2 IOArray 
Typeable2 STRef 
Typeable2 Map 
(Typeable3 s, Typeable a) => Typeable2 (s a)

One Typeable2 instance for all Typeable3 instances

cast :: (Typeable a, Typeable b) => a -> Maybe bSource

gcast :: (Typeable a, Typeable b) => c a -> Maybe (c b)Source