retrie-1.1.0.0: A powerful, easy-to-use codemodding tool for Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Retrie.Util

Synopsis

Documentation

data Verbosity Source #

Constructors

Silent 
Normal 
Loud 

Instances

Instances details
Eq Verbosity Source # 
Instance details

Defined in Retrie.Util

Ord Verbosity Source # 
Instance details

Defined in Retrie.Util

Show Verbosity Source # 
Instance details

Defined in Retrie.Util

vcsIgnorePred :: Verbosity -> FilePath -> IO (Maybe (FilePath -> Bool)) Source #

Returns predicate which says whether filepath is ignored by VCS.

gitIgnorePred :: Verbosity -> FilePath -> IO (Maybe (FilePath -> Bool)) Source #

Read .gitignore in dir and if successful, return predicate for whether given repo path should be ignored.

hgIgnorePred :: Verbosity -> FilePath -> IO (Maybe (FilePath -> Bool)) Source #

Read .hgignore in dir and if successful, return predicate for whether given repo path should be ignored.

trySync :: IO a -> IO (Either SomeException a) Source #

Like try, but rethrows async exceptions.