uhc-util-0.1.7.0: UHC utilities

Safe HaskellNone
LanguageHaskell98

UHC.Util.VarLookup

Description

Abstractions for looking up (type) variables in structures

Synopsis

Documentation

class VarLookupCmb m1 m2 where Source #

VarLookupCmb abstracts the combining of/from a substitution. The interface goes along with VarLookup but is split off to avoid functional dependency restrictions. The purpose is to be able to combine maps only for the purpose of searching without actually merging the maps. This then avoids the later need to unmerge such mergings.

Minimal complete definition

(|+>)

Methods

(|+>) :: m1 -> m2 -> m2 infixr 7 Source #

Instances

LookupApply m1 m2 => VarLookupCmb m1 m2 Source # 

Methods

(|+>) :: m1 -> m2 -> m2 Source #

varlookupMap :: VarLookup m => (VarLookupVal m -> Maybe res) -> VarLookupKey m -> m -> Maybe res Source #

Combine lookup with map; should be obsolete...