ignore-0.1.1.0: Handle ignore files of different VCSes

Safe HaskellNone
LanguageHaskell2010

Ignore

Synopsis

Documentation

findIgnoreFiles :: [VCS] -> Path Abs Dir -> IO [IgnoreFile] Source

Search for the ignore/boring files of different VCSes starting a directory

buildChecker :: [IgnoreFile] -> IO (Either String FileIgnoredChecker) Source

Build function that checks if a file should be ignored

data VCS Source

VCS type

Constructors

VCSGit 
VCSMercurial 
VCSDarcs 

Instances

data IgnoreFile Source

An ignore file

Constructors

IgnoreFile 

Fields

if_vcs :: VCS
 
if_data :: Either (Path Abs File) Text

Either a path to a file or an embedded Text containing the ignore files data

newtype FileIgnoredChecker Source

Abstract checker if a file should be ignored