hydra-0.5.1: Type-aware transformations for data and programs
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hydra.Annotations

Description

Functions for working with term and type annotations

Synopsis

Documentation

aggregateAnnotations :: (x -> Maybe y) -> (y -> x) -> (y -> Map String Term) -> x -> Map String Term Source #

nextCount :: String -> Flow s Int Source #

Return a zero-indexed counter for the given key: 0, 1, 2, ...

putAttr :: String -> Term -> Flow s () Source #

whenFlag :: String -> Flow s a -> Flow s a -> Flow s a Source #