hydra-0.8.0: 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 Name Term) -> x -> Map Name Term Source #

nextCount :: Name -> Flow s Int Source #

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

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

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