retrie-1.2.3: 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
Show Verbosity Source # 
Instance details

Defined in Retrie.Util

Eq Verbosity Source # 
Instance details

Defined in Retrie.Util

Ord 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.