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

Retrie.Util

Synopsis

Documentation

data Verbosity #

Constructors

Silent 
Normal 
Loud 

Instances

Instances details
Show Verbosity # 
Instance details

Defined in Retrie.Util

Eq Verbosity # 
Instance details

Defined in Retrie.Util

Ord Verbosity # 
Instance details

Defined in Retrie.Util

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

Returns predicate which says whether filepath is ignored by VCS.

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

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

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

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

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

Like try, but rethrows async exceptions.