retrie-1.2.2: A powerful, easy-to-use codemodding tool for Haskell.

Safe Haskell | Safe-Inferred
Language | Haskell2010

Retrie.Util

Synopsis

- data Verbosity
  - = Silent
  - | Normal
  - | Loud
- debugPrint :: Verbosity -> String -> [String] -> IO ()
- vcsIgnorePred :: Verbosity -> FilePath -> IO (Maybe (FilePath -> Bool))
- gitIgnorePred :: Verbosity -> FilePath -> IO (Maybe (FilePath -> Bool))
- hgIgnorePred :: Verbosity -> FilePath -> IO (Maybe (FilePath -> Bool))
- ignoreWorker :: String -> Verbosity -> FilePath -> ([FilePath] -> [FilePath]) -> CreateProcess -> IO (Maybe (FilePath -> Bool))
- handler :: String -> Verbosity -> IOError -> IO (Maybe a)
- putErrStrLn :: String -> IO ()
- trySync :: IO a -> IO (Either SomeException a)
- missingSyntax :: String -> a

# Documentation

data Verbosity #

Constructors

Silent |
Normal |
Loud |

#### Instances

Instances details

Show Verbosity # |
Instance details Defined in Retrie.Util Methods showsPrec :: Int -> Verbosity -> ShowS show :: Verbosity -> String showList :: [Verbosity] -> ShowS
Eq Verbosity # |
Instance details Defined in Retrie.Util Methods (==) :: Verbosity -> Verbosity -> Bool (/=) :: Verbosity -> Verbosity -> Bool
Ord Verbosity # |
Instance details Defined in Retrie.Util Methods compare :: Verbosity -> Verbosity -> Ordering (<) :: Verbosity -> Verbosity -> Bool (<=) :: Verbosity -> Verbosity -> Bool (>) :: Verbosity -> Verbosity -> Bool (>=) :: Verbosity -> Verbosity -> Bool max :: Verbosity -> Verbosity -> Verbosity min :: Verbosity -> Verbosity -> Verbosity

debugPrint :: Verbosity -> String -> [String] -> IO () #

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.

ignoreWorker :: String -> Verbosity -> FilePath -> ([FilePath] -> [FilePath]) -> CreateProcess -> IO (Maybe (FilePath -> Bool)) #

handler :: String -> Verbosity -> IOError -> IO (Maybe a) #

putErrStrLn :: String -> IO () #

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

Like `try`, but rethrows async exceptions.

missingSyntax :: String -> a #