hermit-0.7.1.0: Haskell Equational Reasoning Model-to-Implementation Tunnel

Safe HaskellNone
LanguageHaskell2010

HERMIT.Dictionary.Navigation

Contents

Synopsis

Navigation

externals :: [External] Source

Externals involving navigating to named entities.

occurrenceOfT :: (AddBindings c, ExtendPath c Crumb, ReadPath c Crumb, HasEmptyContext c, MonadCatch m) => (Var -> Bool) -> Transform c m LCoreTC LocalPathH Source

Find the path to the first occurrence of a variable.

bindingOfT :: (AddBindings c, ExtendPath c Crumb, ReadPath c Crumb, HasEmptyContext c, MonadCatch m) => (Var -> Bool) -> Transform c m LCoreTC LocalPathH Source

Find the path to the binding of a variable.

bindingGroupOfT :: (AddBindings c, ExtendPath c Crumb, ReadPath c Crumb, HasEmptyContext c, MonadCatch m) => (Var -> Bool) -> Transform c m LCoreTC LocalPathH Source

Find the path to the binding group of a variable.

rhsOfT :: (AddBindings c, ExtendPath c Crumb, ReadPath c Crumb, HasEmptyContext c, MonadCatch m) => (Var -> Bool) -> Transform c m LCoreTC LocalPathH Source

Find the path to the RHS of a binding.

parentOfT :: MonadCatch m => Transform c m g LocalPathH -> Transform c m g LocalPathH Source

Discard the last crumb of a non-empty LocalPathH.

considerables :: [(String, Considerable)] Source

Lookup table for constructs that can be considered; the keys are the arguments the user can give to the "consider" command.

considerConstructT :: (AddBindings c, ExtendPath c Crumb, ReadPath c Crumb, HasEmptyContext c, MonadCatch m) => Considerable -> Transform c m LCore LocalPathH Source

Find the path to the first matching construct.

nthArgPath :: Monad m => Int -> Transform c m CoreExpr LocalPathH Source

Construct a path to the (n-1)th argument in a nested sequence of Apps.