Copyright | (c) 2013-2016 Galois Inc. |
---|---|
License | BSD3 |
Maintainer | cryptol@galois.com |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Documentation
Instances
Functor TypeMap Source # | |
TrieMap TypeMap Type Source # | |
Defined in Cryptol.TypeCheck.TypeMap 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 # | |
TVars a => TVars (TypeMap a) Source # | |
class TrieMap m k | m -> k where 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
insertWithTM :: TrieMap m k => (a -> a -> a) -> k -> a -> m a -> m a 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 #
Instances
Functor m => Functor (List m) Source # | |
TrieMap m a => TrieMap (List m) [a] Source # | |
Defined in Cryptol.TypeCheck.TypeMap 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 # | |