oalg-base-1.1.4.0: Algebraic structures on oriented entities and limits as a tool kit to solve algebraic problems.
Copyright(c) Erich Gut
LicenseBSD3
Maintainerzerich.gut@gmail.com
Safe HaskellSafe-Inferred
LanguageHaskell2010

OAlg.Data.Singleton

Contents

Description

singleton types having exactly one value.

Synopsis

Singleton

class Singleton s where Source #

types s with exactly one value which is called the unit of s.

Methods

unit :: s Source #

Instances

Instances details
Singleton () Source # 
Instance details

Defined in OAlg.Data.Singleton

Methods

unit :: () Source #

Singleton u => Singleton (Orientation u) Source # 
Instance details

Defined in OAlg.Structure.Oriented.Definition

Methods

unit :: Orientation u Source #

Singleton (Proxy t) Source # 
Instance details

Defined in OAlg.Data.Singleton

Methods

unit :: Proxy t Source #

Singleton u => Singleton (a -> u) Source # 
Instance details

Defined in OAlg.Data.Singleton

Methods

unit :: a -> u Source #

class Singleton1 s where Source #

one parameterized types s with exactly one element for each x which is called the unit1 of s x.

Methods

unit1 :: s x Source #

Instances

Instances details
Singleton1 (Proxy :: Type -> Type) Source # 
Instance details

Defined in OAlg.Data.Singleton

Methods

unit1 :: Proxy x Source #

Attestable k => Singleton1 (Free k) Source # 
Instance details

Defined in OAlg.Entity.Slice.Free

Methods

unit1 :: Free k x Source #