ty-0.1.7: Typed type representations and equality proofs

Copyright(c) Conal Elliott 2009
LicenseBSD3
Maintainerconal@conal.net
Stabilityexperimental
Safe HaskellNone
LanguageHaskell98

Data.IsTy

Description

Type class for typed type representations

Synopsis

Documentation

class IsTy f where Source #

Type class for typed type representations

Minimal complete definition

tyEq

Associated Types

type IsTyConstraint f z :: Constraint Source #

Methods

tyEq :: (IsTyConstraint f a, IsTyConstraint f b) => f a -> f b -> Maybe (a :=: b) Source #

Instances

IsTy Ty Source # 

Associated Types

type IsTyConstraint (Ty :: * -> *) z :: Constraint Source #

Methods

tyEq :: (IsTyConstraint Ty a, IsTyConstraint Ty b) => Ty a -> Ty b -> Maybe (a :=: b) Source #

class IsTy2 f where Source #

Type class for typed type representations

Minimal complete definition

tyEq2

Associated Types

type IsTy2Constraint f u v :: Constraint Source #

Methods

tyEq2 :: (IsTy2Constraint f a b, IsTy2Constraint f c d) => f a b -> f c d -> Maybe ((a, b) :=: (c, d)) Source #

class Yes f a Source #

Instances

Yes f a Source # 

class Yes2 f a b Source #

Instances

Yes2 f a b Source #