cryptol-2.9.1: Cryptol: The Language of Cryptography

Copyright(c) 2013-2016 Galois Inc.
LicenseBSD3
Maintainercryptol@galois.com
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Cryptol.TypeCheck.TypeMap

Description

 

Documentation

data TypeMap a Source #

Constructors

TM 

Fields

Instances
Functor TypeMap Source # 
Instance details

Defined in Cryptol.TypeCheck.TypeMap

Methods

fmap :: (a -> b) -> TypeMap a -> TypeMap b #

(<$) :: a -> TypeMap b -> TypeMap a #

TrieMap TypeMap Type Source # 
Instance details

Defined in Cryptol.TypeCheck.TypeMap

Methods

emptyTM :: TypeMap a Source #

nullTM :: TypeMap a -> Bool Source #

lookupTM :: Type -> TypeMap a -> Maybe a Source #

alterTM :: Type -> (Maybe a -> Maybe a) -> TypeMap a -> TypeMap a Source #

unionTM :: (a -> a -> a) -> TypeMap a -> TypeMap a -> TypeMap a Source #

toListTM :: TypeMap a -> [(Type, a)] Source #

mapMaybeWithKeyTM :: (Type -> a -> Maybe b) -> TypeMap a -> TypeMap b Source #

Show a => Show (TypeMap a) Source # 
Instance details

Defined in Cryptol.TypeCheck.TypeMap

Methods

showsPrec :: Int -> TypeMap a -> ShowS #

show :: TypeMap a -> String #

showList :: [TypeMap a] -> ShowS #

TVars a => TVars (TypeMap a) Source # 
Instance details

Defined in Cryptol.TypeCheck.Subst

Methods

apSubst :: Subst -> TypeMap a -> TypeMap a Source #

class TrieMap m k | m -> k where Source #

Methods

emptyTM :: m a Source #

nullTM :: m a -> Bool Source #

lookupTM :: k -> m a -> Maybe a Source #

alterTM :: k -> (Maybe a -> Maybe a) -> m a -> m a Source #

unionTM :: (a -> a -> a) -> m a -> m a -> m a Source #

toListTM :: m a -> [(k, a)] Source #

mapMaybeWithKeyTM :: (k -> a -> Maybe b) -> m a -> m b Source #

Instances
TrieMap TypeMap Type Source # 
Instance details

Defined in Cryptol.TypeCheck.TypeMap

Methods

emptyTM :: TypeMap a Source #

nullTM :: TypeMap a -> Bool Source #

lookupTM :: Type -> TypeMap a -> Maybe a Source #

alterTM :: Type -> (Maybe a -> Maybe a) -> TypeMap a -> TypeMap a Source #

unionTM :: (a -> a -> a) -> TypeMap a -> TypeMap a -> TypeMap a Source #

toListTM :: TypeMap a -> [(Type, a)] Source #

mapMaybeWithKeyTM :: (Type -> a -> Maybe b) -> TypeMap a -> TypeMap b Source #

Ord a => TrieMap (Map a) a Source # 
Instance details

Defined in Cryptol.TypeCheck.TypeMap

Methods

emptyTM :: Map a a0 Source #

nullTM :: Map a a0 -> Bool Source #

lookupTM :: a -> Map a a0 -> Maybe a0 Source #

alterTM :: a -> (Maybe a0 -> Maybe a0) -> Map a a0 -> Map a a0 Source #

unionTM :: (a0 -> a0 -> a0) -> Map a a0 -> Map a a0 -> Map a a0 Source #

toListTM :: Map a a0 -> [(a, a0)] Source #

mapMaybeWithKeyTM :: (a -> a0 -> Maybe b) -> Map a a0 -> Map a b Source #

TrieMap m a => TrieMap (List m) [a] Source # 
Instance details

Defined in Cryptol.TypeCheck.TypeMap

Methods

emptyTM :: List m a0 Source #

nullTM :: List m a0 -> Bool Source #

lookupTM :: [a] -> List m a0 -> Maybe a0 Source #

alterTM :: [a] -> (Maybe a0 -> Maybe a0) -> List m a0 -> List m a0 Source #

unionTM :: (a0 -> a0 -> a0) -> List m a0 -> List m a0 -> List m a0 Source #

toListTM :: List m a0 -> [([a], a0)] Source #

mapMaybeWithKeyTM :: ([a] -> a0 -> Maybe b) -> List m a0 -> List m b Source #

insertTM :: TrieMap m k => k -> a -> m a -> m a Source #

insertWithTM :: TrieMap m k => (a -> a -> a) -> k -> a -> m a -> m a Source #

membersTM :: TrieMap m k => m a -> [a] Source #

mapTM :: TrieMap m k => (a -> b) -> m a -> m b Source #

mapWithKeyTM :: TrieMap m k => (k -> a -> b) -> m a -> m b Source #

mapMaybeTM :: TrieMap m k => (a -> Maybe b) -> m a -> m b Source #

data List m a Source #

Constructors

L 

Fields

Instances
Functor m => Functor (List m) Source # 
Instance details

Defined in Cryptol.TypeCheck.TypeMap

Methods

fmap :: (a -> b) -> List m a -> List m b #

(<$) :: a -> List m b -> List m a #

TrieMap m a => TrieMap (List m) [a] Source # 
Instance details

Defined in Cryptol.TypeCheck.TypeMap

Methods

emptyTM :: List m a0 Source #

nullTM :: List m a0 -> Bool Source #

lookupTM :: [a] -> List m a0 -> Maybe a0 Source #

alterTM :: [a] -> (Maybe a0 -> Maybe a0) -> List m a0 -> List m a0 Source #

unionTM :: (a0 -> a0 -> a0) -> List m a0 -> List m a0 -> List m a0 Source #

toListTM :: List m a0 -> [([a], a0)] Source #

mapMaybeWithKeyTM :: ([a] -> a0 -> Maybe b) -> List m a0 -> List m b Source #

(Functor m, TVars a) => TVars (List m a) Source # 
Instance details

Defined in Cryptol.TypeCheck.Subst

Methods

apSubst :: Subst -> List m a -> List m a Source #