fcf-containers-0.7.1: Data structures and algorithms for first-class-families
Copyright(c) gspia 2020-
LicenseBSD
Maintainergspia
Safe HaskellSafe-Inferred
LanguageHaskell2010

Fcf.Alg.Other

Description

Fcf.Alg.Other

To be moved to some other place

Synopsis

Documentation

>>> import           GHC.Types

data PairMaybeToMaybePair :: (Maybe a, Maybe b) -> Exp (Maybe (a, b)) Source #

Helper.

Example

Expand
>>> :kind! Eval (PairMaybeToMaybePair '( 'Just "txt", 'Just 1))
Eval (PairMaybeToMaybePair '( 'Just "txt", 'Just 1)) :: Maybe
                                                          (Symbol, Nat)
= 'Just '("txt", 1)

Instances

Instances details
type Eval (PairMaybeToMaybePair '('Nothing :: Maybe a, _1) :: Maybe (a, b) -> Type) Source # 
Instance details

Defined in Fcf.Alg.Other

type Eval (PairMaybeToMaybePair '('Nothing :: Maybe a, _1) :: Maybe (a, b) -> Type) = 'Nothing :: Maybe (a, b)
type Eval (PairMaybeToMaybePair '(_1, 'Nothing :: Maybe b) :: Maybe (a, b) -> Type) Source # 
Instance details

Defined in Fcf.Alg.Other

type Eval (PairMaybeToMaybePair '(_1, 'Nothing :: Maybe b) :: Maybe (a, b) -> Type) = 'Nothing :: Maybe (a, b)
type Eval (PairMaybeToMaybePair '('Just a, 'Just b) :: Maybe (k1, k2) -> Type) Source # 
Instance details

Defined in Fcf.Alg.Other

type Eval (PairMaybeToMaybePair '('Just a, 'Just b) :: Maybe (k1, k2) -> Type) = 'Just '(a, b)

data Id :: a -> Exp a Source #

Id function.

Example

Expand
>>> :kind! Eval (Id "id")
Eval (Id "id") :: Symbol
= "id"

Instances

Instances details
type Eval (Id a2 :: a1 -> Type) Source # 
Instance details

Defined in Fcf.Alg.Other

type Eval (Id a2 :: a1 -> Type) = a2