Module Data.wrapper.Const

type level const Const is a way to use some arbitrary type as an applicative Functor

Imports

Table of Content

Definitions

data Const a b

Constructors

Const {get ∷ a}

Member Functions

getConst 𝖆 𝖇 → 𝖆

access field get

Instances

instance Monoid m ⇒ Applicative (Const m)

Member Functions

*>Monoid 𝖆 ⇒ Const 𝖆 𝖇Const 𝖆 𝖈Const 𝖆 𝖈
infixl  4

inherited from Applicative.*>

<*Monoid 𝖆 ⇒ Const 𝖆 𝖇Const 𝖆 𝖈Const 𝖆 𝖇
infixl  4

inherited from Applicative.<*

<*>Monoid 𝖆 ⇒ Const 𝖆 (𝖇→𝖈)Const 𝖆 𝖇Const 𝖆 𝖈
infixl  4
pureMonoid 𝖆 ⇒ 𝖇 → Const 𝖆 𝖇
instance Functor (Const m)

Member Functions

fmap ∷ (𝖇 → 𝖈) → Const 𝖆 𝖇Const 𝖆 𝖈
infixl  4

Functions and Values by Type

𝖆 → Bool

Const.has$get

Const 𝖆 𝖇 → 𝖆

Const.get

a → Const a b

Const.Const

Monoid 𝖆 ⇒ 𝖇 → Const 𝖆 𝖇

Applicative_Const.pure

(𝖇 → 𝖈) → Const 𝖆 𝖇 → Const 𝖆 𝖈

Functor_Const.fmap

Monoid 𝖆 ⇒ Const 𝖆 (𝖇→𝖈) → Const 𝖆 𝖇 → Const 𝖆 𝖈

Applicative_Const.<*>

Monoid 𝖆 ⇒ Const 𝖆 𝖇 → Const 𝖆 𝖈 → Const 𝖆 𝖇

Applicative_Const.<*

Monoid 𝖆 ⇒ Const 𝖆 𝖇 → Const 𝖆 𝖈 → Const 𝖆 𝖈

Applicative_Const.*>

Const 𝖆 𝖇 → 𝖈 → Const 𝖈 𝖉

Const.upd$get

Const 𝖉 𝖆 → (𝖉→𝖇) → Const 𝖇 𝖈

Const.chg$get

Valid HTML 4.01 Strict