dojang-0.2.1: A cross-platform dotfiles manager
Safe HaskellNone
LanguageHaskell2010

Dojang.Types.Hook

Synopsis

Documentation

data Hook Source #

A hook configuration.

Constructors

Hook 

Fields

Instances

Instances details
Show Hook Source # 
Instance details

Defined in Dojang.Types.Hook

Methods

showsPrec :: Int -> Hook -> ShowS #

show :: Hook -> String #

showList :: [Hook] -> ShowS #

Eq Hook Source # 
Instance details

Defined in Dojang.Types.Hook

Methods

(==) :: Hook -> Hook -> Bool #

(/=) :: Hook -> Hook -> Bool #

data HookType Source #

The type of hook, determining when it runs.

Constructors

PreApply

Runs before file sync (every apply).

PreFirstApply

Runs before file sync (first apply only).

PostFirstApply

Runs after file sync (first apply only).

PostApply

Runs after file sync (every apply).

type HookMap = Map HookType [Hook] Source #

A map from hook types to lists of hooks.

allHookTypes :: [HookType] Source #

All hook types in execution order.