singletons-2.3.1: A framework for generating singleton types

Copyright(C) 2014 Richard Eisenberg
LicenseBSD-style (see LICENSE)
MaintainerRichard Eisenberg (rae@cs.brynmawr.edu)
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Data.Singletons.TypeLits

Contents

Description

Defines and exports singletons useful for the Nat and Symbol kinds.

Synopsis

Documentation

data Nat :: * #

(Kind) This is the kind of type-level natural numbers.

Instances

SNum Nat # 
PNum Nat # 

Associated Types

type (Nat :+ (arg :: Nat)) (arg :: Nat) :: a #

type (Nat :- (arg :: Nat)) (arg :: Nat) :: a #

type (Nat :* (arg :: Nat)) (arg :: Nat) :: a #

type Negate Nat (arg :: Nat) :: a #

type Abs Nat (arg :: Nat) :: a #

type Signum Nat (arg :: Nat) :: a #

type FromInteger Nat (arg :: Nat) :: a #

SEnum Nat # 
PEnum Nat # 

Associated Types

type Succ Nat (arg :: Nat) :: a #

type Pred Nat (arg :: Nat) :: a #

type ToEnum Nat (arg :: Nat) :: a #

type FromEnum Nat (arg :: Nat) :: Nat #

type EnumFromTo Nat (arg :: Nat) (arg :: Nat) :: [a] #

type EnumFromThenTo Nat (arg :: Nat) (arg :: Nat) (arg :: Nat) :: [a] #

SuppressUnusedWarnings (Nat -> TyFun Nat Nat -> *) (:^$$) # 
SuppressUnusedWarnings (TyFun Nat (TyFun Nat Nat -> *) -> *) (:^$) # 
SuppressUnusedWarnings (TyFun Nat Constraint -> *) KnownNatSym0 # 
SuppressUnusedWarnings ((TyFun a6989586621679475569 Bool -> Type) -> TyFun [a6989586621679475569] [Nat] -> *) (FindIndicesSym1 a6989586621679475569) # 

Methods

suppressUnusedWarnings :: Proxy (FindIndicesSym1 a6989586621679475569) t -> () #

SuppressUnusedWarnings ((TyFun a6989586621679475570 Bool -> Type) -> TyFun [a6989586621679475570] (Maybe Nat) -> *) (FindIndexSym1 a6989586621679475570) # 

Methods

suppressUnusedWarnings :: Proxy (FindIndexSym1 a6989586621679475570) t -> () #

SuppressUnusedWarnings ([a6989586621679475543] -> TyFun Nat a6989586621679475543 -> *) ((:!!$$) a6989586621679475543) # 

Methods

suppressUnusedWarnings :: Proxy ((:!!$$) a6989586621679475543) t -> () #

SuppressUnusedWarnings (Nat -> TyFun [a6989586621679475560] [a6989586621679475560] -> *) (DropSym1 a6989586621679475560) # 

Methods

suppressUnusedWarnings :: Proxy (DropSym1 a6989586621679475560) t -> () #

SuppressUnusedWarnings (Nat -> TyFun [a6989586621679475561] [a6989586621679475561] -> *) (TakeSym1 a6989586621679475561) # 

Methods

suppressUnusedWarnings :: Proxy (TakeSym1 a6989586621679475561) t -> () #

SuppressUnusedWarnings (Nat -> TyFun [a6989586621679475559] ([a6989586621679475559], [a6989586621679475559]) -> *) (SplitAtSym1 a6989586621679475559) # 

Methods

suppressUnusedWarnings :: Proxy (SplitAtSym1 a6989586621679475559) t -> () #

SuppressUnusedWarnings (Nat -> TyFun a6989586621679475545 [a6989586621679475545] -> *) (ReplicateSym1 a6989586621679475545) # 

Methods

suppressUnusedWarnings :: Proxy (ReplicateSym1 a6989586621679475545) t -> () #

SuppressUnusedWarnings (Nat -> TyFun (NonEmpty a6989586621679753510) [a6989586621679753510] -> *) (TakeSym1 a6989586621679753510) # 

Methods

suppressUnusedWarnings :: Proxy (TakeSym1 a6989586621679753510) t -> () #

SuppressUnusedWarnings (Nat -> TyFun (NonEmpty a6989586621679753509) [a6989586621679753509] -> *) (DropSym1 a6989586621679753509) # 

Methods

suppressUnusedWarnings :: Proxy (DropSym1 a6989586621679753509) t -> () #

SuppressUnusedWarnings (Nat -> TyFun (NonEmpty a6989586621679753508) ([a6989586621679753508], [a6989586621679753508]) -> *) (SplitAtSym1 a6989586621679753508) # 

Methods

suppressUnusedWarnings :: Proxy (SplitAtSym1 a6989586621679753508) t -> () #

SuppressUnusedWarnings (a6989586621679475571 -> TyFun [a6989586621679475571] [Nat] -> *) (ElemIndicesSym1 a6989586621679475571) # 

Methods

suppressUnusedWarnings :: Proxy (ElemIndicesSym1 a6989586621679475571) t -> () #

SuppressUnusedWarnings (a6989586621679475572 -> TyFun [a6989586621679475572] (Maybe Nat) -> *) (ElemIndexSym1 a6989586621679475572) # 

Methods

suppressUnusedWarnings :: Proxy (ElemIndexSym1 a6989586621679475572) t -> () #

SuppressUnusedWarnings (NonEmpty a6989586621679753488 -> TyFun Nat a6989586621679753488 -> *) ((:!!$$) a6989586621679753488) # 

Methods

suppressUnusedWarnings :: Proxy ((:!!$$) a6989586621679753488) t -> () #

SuppressUnusedWarnings (TyFun (TyFun a6989586621679475569 Bool -> Type) (TyFun [a6989586621679475569] [Nat] -> Type) -> *) (FindIndicesSym0 a6989586621679475569) # 

Methods

suppressUnusedWarnings :: Proxy (FindIndicesSym0 a6989586621679475569) t -> () #

SuppressUnusedWarnings (TyFun (TyFun a6989586621679475570 Bool -> Type) (TyFun [a6989586621679475570] (Maybe Nat) -> Type) -> *) (FindIndexSym0 a6989586621679475570) # 

Methods

suppressUnusedWarnings :: Proxy (FindIndexSym0 a6989586621679475570) t -> () #

SuppressUnusedWarnings (TyFun [a6989586621679475543] (TyFun Nat a6989586621679475543 -> Type) -> *) ((:!!$) a6989586621679475543) # 

Methods

suppressUnusedWarnings :: Proxy ((:!!$) a6989586621679475543) t -> () #

SuppressUnusedWarnings (TyFun [a6989586621679475546] Nat -> *) (LengthSym0 a6989586621679475546) # 

Methods

suppressUnusedWarnings :: Proxy (LengthSym0 a6989586621679475546) t -> () #

SuppressUnusedWarnings (TyFun Nat (TyFun [a6989586621679475560] [a6989586621679475560] -> Type) -> *) (DropSym0 a6989586621679475560) # 

Methods

suppressUnusedWarnings :: Proxy (DropSym0 a6989586621679475560) t -> () #

SuppressUnusedWarnings (TyFun Nat (TyFun [a6989586621679475561] [a6989586621679475561] -> Type) -> *) (TakeSym0 a6989586621679475561) # 

Methods

suppressUnusedWarnings :: Proxy (TakeSym0 a6989586621679475561) t -> () #

SuppressUnusedWarnings (TyFun Nat (TyFun [a6989586621679475559] ([a6989586621679475559], [a6989586621679475559]) -> Type) -> *) (SplitAtSym0 a6989586621679475559) # 

Methods

suppressUnusedWarnings :: Proxy (SplitAtSym0 a6989586621679475559) t -> () #

SuppressUnusedWarnings (TyFun Nat (TyFun a6989586621679475545 [a6989586621679475545] -> Type) -> *) (ReplicateSym0 a6989586621679475545) # 

Methods

suppressUnusedWarnings :: Proxy (ReplicateSym0 a6989586621679475545) t -> () #

SuppressUnusedWarnings (TyFun Nat (TyFun (NonEmpty a6989586621679753510) [a6989586621679753510] -> Type) -> *) (TakeSym0 a6989586621679753510) # 

Methods

suppressUnusedWarnings :: Proxy (TakeSym0 a6989586621679753510) t -> () #

SuppressUnusedWarnings (TyFun Nat (TyFun (NonEmpty a6989586621679753509) [a6989586621679753509] -> Type) -> *) (DropSym0 a6989586621679753509) # 

Methods

suppressUnusedWarnings :: Proxy (DropSym0 a6989586621679753509) t -> () #

SuppressUnusedWarnings (TyFun Nat (TyFun (NonEmpty a6989586621679753508) ([a6989586621679753508], [a6989586621679753508]) -> Type) -> *) (SplitAtSym0 a6989586621679753508) # 

Methods

suppressUnusedWarnings :: Proxy (SplitAtSym0 a6989586621679753508) t -> () #

SuppressUnusedWarnings (TyFun Nat a6989586621679427063 -> *) (FromIntegerSym0 a6989586621679427063) # 

Methods

suppressUnusedWarnings :: Proxy (FromIntegerSym0 a6989586621679427063) t -> () #

SuppressUnusedWarnings (TyFun Nat a6989586621679834780 -> *) (ToEnumSym0 a6989586621679834780) # 

Methods

suppressUnusedWarnings :: Proxy (ToEnumSym0 a6989586621679834780) t -> () #

SuppressUnusedWarnings (TyFun a6989586621679475571 (TyFun [a6989586621679475571] [Nat] -> Type) -> *) (ElemIndicesSym0 a6989586621679475571) # 

Methods

suppressUnusedWarnings :: Proxy (ElemIndicesSym0 a6989586621679475571) t -> () #

SuppressUnusedWarnings (TyFun a6989586621679475572 (TyFun [a6989586621679475572] (Maybe Nat) -> Type) -> *) (ElemIndexSym0 a6989586621679475572) # 

Methods

suppressUnusedWarnings :: Proxy (ElemIndexSym0 a6989586621679475572) t -> () #

SuppressUnusedWarnings (TyFun a6989586621679834780 Nat -> *) (FromEnumSym0 a6989586621679834780) # 

Methods

suppressUnusedWarnings :: Proxy (FromEnumSym0 a6989586621679834780) t -> () #

SuppressUnusedWarnings (TyFun (NonEmpty a6989586621679753488) (TyFun Nat a6989586621679753488 -> Type) -> *) ((:!!$) a6989586621679753488) # 

Methods

suppressUnusedWarnings :: Proxy ((:!!$) a6989586621679753488) t -> () #

SuppressUnusedWarnings (TyFun (NonEmpty a6989586621679753541) Nat -> *) (LengthSym0 a6989586621679753541) # 

Methods

suppressUnusedWarnings :: Proxy (LengthSym0 a6989586621679753541) t -> () #

type Demote Nat # 
data Sing Nat # 
data Sing Nat where
type Negate Nat a # 
type Negate Nat a = Error Symbol Nat "Cannot negate a natural number"
type Abs Nat a # 
type Abs Nat a = a
type Signum Nat a # 
type Signum Nat a
type FromInteger Nat a # 
type FromInteger Nat a = a
type Succ Nat a # 
type Succ Nat a
type Pred Nat a # 
type Pred Nat a
type ToEnum Nat a # 
type ToEnum Nat a
type FromEnum Nat a # 
type FromEnum Nat a
type (==) Nat a b 
type (==) Nat a b = EqNat a b
type (:==) Nat a b # 
type (:==) Nat a b = (==) Nat a b
type (:/=) Nat x y # 
type (:/=) Nat x y = Not ((:==) Nat x y)
type Compare Nat a b # 
type Compare Nat a b = CmpNat a b
type (:<) Nat arg1 arg2 # 
type (:<) Nat arg1 arg2
type (:<=) Nat arg1 arg2 # 
type (:<=) Nat arg1 arg2
type (:>) Nat arg1 arg2 # 
type (:>) Nat arg1 arg2
type (:>=) Nat arg1 arg2 # 
type (:>=) Nat arg1 arg2
type Max Nat arg1 arg2 # 
type Max Nat arg1 arg2
type Min Nat arg1 arg2 # 
type Min Nat arg1 arg2
type (:+) Nat a b # 
type (:+) Nat a b = (+) a b
type (:-) Nat a b # 
type (:-) Nat a b = (-) a b
type (:*) Nat a b # 
type (:*) Nat a b = * a b
type EnumFromTo Nat a1 a2 # 
type EnumFromTo Nat a1 a2
type Apply Nat Constraint KnownNatSym0 l # 
type EnumFromThenTo Nat a1 a2 a3 # 
type EnumFromThenTo Nat a1 a2 a3
type Apply Nat Nat ((:^$$) l1) l2 # 
type Apply Nat Nat ((:^$$) l1) l2 = (:^) l1 l2
type Apply Nat k2 (FromIntegerSym0 k2) l # 
type Apply Nat k2 (FromIntegerSym0 k2) l = FromInteger k2 l
type Apply Nat k2 (ToEnumSym0 k2) l # 
type Apply Nat k2 (ToEnumSym0 k2) l = ToEnum k2 l
type Apply a Nat (FromEnumSym0 a) l # 
type Apply a Nat (FromEnumSym0 a) l = FromEnum a l
type Apply Nat a ((:!!$$) a l1) l2 # 
type Apply Nat a ((:!!$$) a l1) l2 = (:!!) a l1 l2
type Apply Nat a ((:!!$$) a l1) l2 # 
type Apply Nat a ((:!!$$) a l1) l2 = (:!!) a l1 l2
type Apply Nat (TyFun Nat Nat -> *) (:^$) l # 
type Apply Nat (TyFun Nat Nat -> *) (:^$) l = (:^$$) l
type Apply Nat (TyFun [a6989586621679475560] [a6989586621679475560] -> Type) (DropSym0 a6989586621679475560) l # 
type Apply Nat (TyFun [a6989586621679475560] [a6989586621679475560] -> Type) (DropSym0 a6989586621679475560) l = DropSym1 a6989586621679475560 l
type Apply Nat (TyFun [a6989586621679475561] [a6989586621679475561] -> Type) (TakeSym0 a6989586621679475561) l # 
type Apply Nat (TyFun [a6989586621679475561] [a6989586621679475561] -> Type) (TakeSym0 a6989586621679475561) l = TakeSym1 a6989586621679475561 l
type Apply Nat (TyFun [a6989586621679475559] ([a6989586621679475559], [a6989586621679475559]) -> Type) (SplitAtSym0 a6989586621679475559) l # 
type Apply Nat (TyFun [a6989586621679475559] ([a6989586621679475559], [a6989586621679475559]) -> Type) (SplitAtSym0 a6989586621679475559) l = SplitAtSym1 a6989586621679475559 l
type Apply Nat (TyFun a6989586621679475545 [a6989586621679475545] -> Type) (ReplicateSym0 a6989586621679475545) l # 
type Apply Nat (TyFun a6989586621679475545 [a6989586621679475545] -> Type) (ReplicateSym0 a6989586621679475545) l = ReplicateSym1 a6989586621679475545 l
type Apply Nat (TyFun (NonEmpty a6989586621679753510) [a6989586621679753510] -> Type) (TakeSym0 a6989586621679753510) l # 
type Apply Nat (TyFun (NonEmpty a6989586621679753510) [a6989586621679753510] -> Type) (TakeSym0 a6989586621679753510) l = TakeSym1 a6989586621679753510 l
type Apply Nat (TyFun (NonEmpty a6989586621679753509) [a6989586621679753509] -> Type) (DropSym0 a6989586621679753509) l # 
type Apply Nat (TyFun (NonEmpty a6989586621679753509) [a6989586621679753509] -> Type) (DropSym0 a6989586621679753509) l = DropSym1 a6989586621679753509 l
type Apply Nat (TyFun (NonEmpty a6989586621679753508) ([a6989586621679753508], [a6989586621679753508]) -> Type) (SplitAtSym0 a6989586621679753508) l # 
type Apply Nat (TyFun (NonEmpty a6989586621679753508) ([a6989586621679753508], [a6989586621679753508]) -> Type) (SplitAtSym0 a6989586621679753508) l = SplitAtSym1 a6989586621679753508 l
type Apply a6989586621679475571 (TyFun [a6989586621679475571] [Nat] -> Type) (ElemIndicesSym0 a6989586621679475571) l # 
type Apply a6989586621679475571 (TyFun [a6989586621679475571] [Nat] -> Type) (ElemIndicesSym0 a6989586621679475571) l = ElemIndicesSym1 a6989586621679475571 l
type Apply a6989586621679475572 (TyFun [a6989586621679475572] (Maybe Nat) -> Type) (ElemIndexSym0 a6989586621679475572) l # 
type Apply a6989586621679475572 (TyFun [a6989586621679475572] (Maybe Nat) -> Type) (ElemIndexSym0 a6989586621679475572) l = ElemIndexSym1 a6989586621679475572 l
type Apply [a] Nat (LengthSym0 a) l # 
type Apply [a] Nat (LengthSym0 a) l = Length a l
type Apply (NonEmpty a) Nat (LengthSym0 a) l # 
type Apply (NonEmpty a) Nat (LengthSym0 a) l = Length a l
type Apply [a] [Nat] (FindIndicesSym1 a l1) l2 # 
type Apply [a] [Nat] (FindIndicesSym1 a l1) l2 = FindIndices a l1 l2
type Apply [a] [Nat] (ElemIndicesSym1 a l1) l2 # 
type Apply [a] [Nat] (ElemIndicesSym1 a l1) l2 = ElemIndices a l1 l2
type Apply [a] (Maybe Nat) (FindIndexSym1 a l1) l2 # 
type Apply [a] (Maybe Nat) (FindIndexSym1 a l1) l2 = FindIndex a l1 l2
type Apply [a] (Maybe Nat) (ElemIndexSym1 a l1) l2 # 
type Apply [a] (Maybe Nat) (ElemIndexSym1 a l1) l2 = ElemIndex a l1 l2
type Apply [a6989586621679475543] (TyFun Nat a6989586621679475543 -> Type) ((:!!$) a6989586621679475543) l # 
type Apply [a6989586621679475543] (TyFun Nat a6989586621679475543 -> Type) ((:!!$) a6989586621679475543) l = (:!!$$) a6989586621679475543 l
type Apply (NonEmpty a6989586621679753488) (TyFun Nat a6989586621679753488 -> Type) ((:!!$) a6989586621679753488) l # 
type Apply (NonEmpty a6989586621679753488) (TyFun Nat a6989586621679753488 -> Type) ((:!!$) a6989586621679753488) l = (:!!$$) a6989586621679753488 l
type Apply (TyFun a6989586621679475569 Bool -> Type) (TyFun [a6989586621679475569] [Nat] -> Type) (FindIndicesSym0 a6989586621679475569) l # 
type Apply (TyFun a6989586621679475569 Bool -> Type) (TyFun [a6989586621679475569] [Nat] -> Type) (FindIndicesSym0 a6989586621679475569) l = FindIndicesSym1 a6989586621679475569 l
type Apply (TyFun a6989586621679475570 Bool -> Type) (TyFun [a6989586621679475570] (Maybe Nat) -> Type) (FindIndexSym0 a6989586621679475570) l # 
type Apply (TyFun a6989586621679475570 Bool -> Type) (TyFun [a6989586621679475570] (Maybe Nat) -> Type) (FindIndexSym0 a6989586621679475570) l = FindIndexSym1 a6989586621679475570 l

data Symbol :: * #

(Kind) This is the kind of type-level symbols. Declared here because class IP needs it

Instances

SingKind Symbol

Since: 4.9.0.0

Associated Types

type DemoteRep Symbol :: *

Methods

fromSing :: Sing Symbol a -> DemoteRep Symbol

KnownSymbol a => SingI Symbol a

Since: 4.9.0.0

Methods

sing :: Sing a a

SuppressUnusedWarnings (TyFun Symbol Constraint -> *) KnownSymbolSym0 # 
data Sing Symbol 
data Sing Symbol where
type DemoteRep Symbol 
type DemoteRep Symbol = String
type Demote Symbol # 
data Sing Symbol # 
data Sing Symbol where
type (==) Symbol a b 
type (==) Symbol a b = EqSymbol a b
type (:==) Symbol a b # 
type (:==) Symbol a b = (==) Symbol a b
type (:/=) Symbol x y # 
type (:/=) Symbol x y = Not ((:==) Symbol x y)
type Compare Symbol a b # 
type Compare Symbol a b = CmpSymbol a b
type (:<) Symbol arg1 arg2 # 
type (:<) Symbol arg1 arg2
type (:<=) Symbol arg1 arg2 # 
type (:<=) Symbol arg1 arg2
type (:>) Symbol arg1 arg2 # 
type (:>) Symbol arg1 arg2
type (:>=) Symbol arg1 arg2 # 
type (:>=) Symbol arg1 arg2
type Max Symbol arg1 arg2 # 
type Max Symbol arg1 arg2
type Min Symbol arg1 arg2 # 
type Min Symbol arg1 arg2
type Apply Symbol Constraint KnownSymbolSym0 l # 

data family Sing (a :: k) #

The singleton kind-indexed data family.

Instances

data Sing Bool # 
data Sing Bool where
data Sing Ordering # 
data Sing * # 
data Sing * where
data Sing Nat # 
data Sing Nat where
data Sing Symbol # 
data Sing Symbol where
data Sing () # 
data Sing () where
data Sing [a] # 
data Sing [a] where
data Sing (Maybe a) # 
data Sing (Maybe a) where
data Sing (NonEmpty a) # 
data Sing (NonEmpty a) where
data Sing (Either a b) # 
data Sing (Either a b) where
data Sing (a, b) # 
data Sing (a, b) where
data Sing ((~>) k1 k2) # 
data Sing ((~>) k1 k2) = SLambda {}
data Sing (a, b, c) # 
data Sing (a, b, c) where
data Sing (a, b, c, d) # 
data Sing (a, b, c, d) where
data Sing (a, b, c, d, e) # 
data Sing (a, b, c, d, e) where
data Sing (a, b, c, d, e, f) # 
data Sing (a, b, c, d, e, f) where
data Sing (a, b, c, d, e, f, g) # 
data Sing (a, b, c, d, e, f, g) where

type SNat (x :: Nat) = Sing x #

Kind-restricted synonym for Sing for Nats

type SSymbol (x :: Symbol) = Sing x #

Kind-restricted synonym for Sing for Symbols

withKnownNat :: Sing n -> (KnownNat n => r) -> r #

Given a singleton for Nat, call something requiring a KnownNat instance.

withKnownSymbol :: Sing n -> (KnownSymbol n => r) -> r #

Given a singleton for Symbol, call something requiring a KnownSymbol instance.

type family Error (str :: k0) :: k #

The promotion of error. This version is more poly-kinded for easier use.

data ErrorSym0 (l :: TyFun k06989586621679418718 k6989586621679418720) #

Instances

SuppressUnusedWarnings (TyFun k06989586621679418718 k6989586621679418720 -> *) (ErrorSym0 k06989586621679418718 k6989586621679418720) # 

Methods

suppressUnusedWarnings :: Proxy (ErrorSym0 k06989586621679418718 k6989586621679418720) t -> () #

type Apply k0 k2 (ErrorSym0 k0 k2) l # 
type Apply k0 k2 (ErrorSym0 k0 k2) l = Error k0 k2 l

type ErrorSym1 (t :: k06989586621679418718) = Error t #

sError :: Sing (str :: Symbol) -> a #

The singleton for error

class KnownNat (n :: Nat) #

This class gives the integer associated with a type-level natural. There are instances of the class for every concrete literal: 0, 1, 2, etc.

Since: 4.7.0.0

Minimal complete definition

natSing

type KnownNatSym1 (t :: Nat) = KnownNat t #

natVal :: KnownNat n => proxy n -> Integer #

Since: 4.7.0.0

class KnownSymbol (n :: Symbol) #

This class gives the string associated with a type-level symbol. There are instances of the class for every concrete literal: "hello", etc.

Since: 4.7.0.0

Minimal complete definition

symbolSing

symbolVal :: KnownSymbol n => proxy n -> String #

Since: 4.7.0.0

type (:^) a b = a ^ b infixr 8 #

data (:^$) l #

Instances

data (l :: Nat) :^$$ l #

Instances

SuppressUnusedWarnings (Nat -> TyFun Nat Nat -> *) (:^$$) # 
type Apply Nat Nat ((:^$$) l1) l2 # 
type Apply Nat Nat ((:^$$) l1) l2 = (:^) l1 l2

type (:^$$$) (t :: Nat) (t :: Nat) = (:^) t t #

Orphan instances

Eq Nat # 

Methods

(==) :: Nat -> Nat -> Bool #

(/=) :: Nat -> Nat -> Bool #

Eq Symbol #

This bogus instance is helpful for people who want to define functions over Symbols that will only be used at the type level or as singletons.

Methods

(==) :: Symbol -> Symbol -> Bool #

(/=) :: Symbol -> Symbol -> Bool #

Num Nat #

This bogus Num instance is helpful for people who want to define functions over Nats that will only be used at the type level or as singletons. A correct SNum instance for Nat singletons exists.

Methods

(+) :: Nat -> Nat -> Nat #

(-) :: Nat -> Nat -> Nat #

(*) :: Nat -> Nat -> Nat #

negate :: Nat -> Nat #

abs :: Nat -> Nat #

signum :: Nat -> Nat #

fromInteger :: Integer -> Nat #

Ord Nat # 

Methods

compare :: Nat -> Nat -> Ordering #

(<) :: Nat -> Nat -> Bool #

(<=) :: Nat -> Nat -> Bool #

(>) :: Nat -> Nat -> Bool #

(>=) :: Nat -> Nat -> Bool #

max :: Nat -> Nat -> Nat #

min :: Nat -> Nat -> Nat #

Ord Symbol #