shivers-cfg-0.1.1: Implementation of Shivers' Control-Flow Analysis

Safe HaskellSafe
LanguageHaskell98

Common

Contents

Description

Some convenience definitions.

Synopsis

Type aliases

type (:⇀) a b = Map a b infixl 8 Source

Convenient alias for a partial map

type (:×) a b = (a, b) infixl 9 Source

Convenient alias for a product type

Partial map functions

upd :: Ord k => (k :⇀ a) -> [k a] -> k :⇀ a Source

A function used to write map updates resembling the mathematical syntax m [ k ↦ v] as m upd [k ↦ v]

upd' :: (Ord k, Functor f) => f (k :⇀ a) -> [k a] -> f (k :⇀ a) Source

A functorial variant of upd

(↦) :: k -> v -> k v Source

For use in the argument list of upd

unionsM :: (Monad m, Ord k) => [m (k :⇀ a)] -> m (k :⇀ a) Source

A monadically lifted unions