Agda-2.4.2: A dependently typed functional programming language and proof assistant

Safe HaskellNone

Agda.TypeChecking.SizedTypes.Utils

Synopsis

Documentation

debug :: BoolSource

trace :: String -> a -> aSource

traceM :: Applicative f => String -> f ()Source

($>) :: Functor f => f b -> a -> f aSource

class Eq a => Top a whereSource

Methods

top :: aSource

isTop :: a -> BoolSource

Instances

Top Cmp 
Top Label 
Top Weight 
(Ord r, Ord f, Top a) => Top (Edge' r f a) 

class Plus a b c whereSource

Methods

plus :: a -> b -> cSource

Instances

Plus Int Int Int 
Plus Offset Weight Weight 
Plus Weight Offset Weight 
Plus NamedRigid Int NamedRigid 
Plus (SizeExpr' r f) Offset (SizeExpr' r f)

Add offset to size expression.

Plus (SizeExpr' r f) Label (SizeExpr' r f) 
Plus (SizeExpr' r f) Weight (SizeExpr' r f) 

class MeetSemiLattice a whereSource

Methods

meet :: a -> a -> aSource

Instances

class (MeetSemiLattice a, Top a) => Dioid a whereSource

Semiring with idempotent + == dioid

Methods

composeSource

Arguments

:: a 
-> a 
-> a

E.g. +

unitComposeSource

Arguments

:: a

neutral element of compose, e.g. zero

Instances

Dioid Cmp 
Dioid Label 
Dioid Weight 
(Show r, Show f, Show a, Ord r, Ord f, Dioid a) => Dioid (Edge' r f a)