prob-fx-0.1.0.2: A library for modular probabilistic modelling
Safe HaskellSafe-Inferred
LanguageHaskell2010

FindElem

Description

Auxiliary definitions for finding a type in a type-level list.

Synopsis

Documentation

class FindElem x xs where Source #

Proof that x is an element of the type-level list xs

Methods

findElem :: Idx x xs Source #

Instances

Instances details
(TypeError (('Text "Cannot unify effect types." :$$: ('Text "Unhandled effect: " :<>: 'ShowType x)) :$$: 'Text "Perhaps check the type of effectful computation and the sequence of handlers for concordance?") :: Constraint) => FindElem (x :: k1) ('[] :: [k2]) Source # 
Instance details

Defined in FindElem

Methods

findElem :: Idx x '[] Source #

FindElem x xs => FindElem (x :: k) (x' ': xs :: [a]) Source # 
Instance details

Defined in FindElem

Methods

findElem :: Idx x (x' ': xs) Source #

FindElem (x :: a) (x ': xs :: [a]) Source # 
Instance details

Defined in FindElem

Methods

findElem :: Idx x (x ': xs) Source #

FindElem x2 env => FindElem (x2 :: k) ((x' := a2) ': env :: [Assign x1 a1]) Source # 
Instance details

Defined in Env

Methods

findElem :: Idx x2 ((x' := a2) ': env) Source #

FindElem (x2 :: x1) ((x2 := a2) ': env :: [Assign x1 a1]) Source # 
Instance details

Defined in Env

Methods

findElem :: Idx x2 ((x2 := a2) ': env) Source #

newtype Idx x xs Source #

The integer index of x in xs

Constructors

Idx 

Fields