BSD-3-Clause licensed and maintained by Alexander Thiemann
This version can be pinned in stack with:ignore-0.1.1.0@sha256:4a2a98858c652b5b83861b9db64d88764168c619661a2c18d1b5b64a80db0d43,2434

Module documentation for 0.1.1.0

Used by 1 package in lts-11.22(full list with versions):

ignore

Build Status Hackage

Intro

Hackage: ignore Stackage: ignore

Handle ignore files of different VCSes

Cli Usage: ignore

$ ignore --help
The ignore tool
(c) 2015 Alexander Thiemann

Tiny tool to check if a file in a repo is ignored by a VCS

Usage: ignore [--help|-h] file1 file2 file3 ... fileN

Library Usage Example

module Main where

import Ignore

import Path
import System.Environment
import System.Directory

main :: IO ()
main =
    do dir <- getCurrentDirectory >>= parseAbsDir
       ignoreFiles <- findIgnoreFiles [VCSGit, VCSMercurial, VCSDarcs] dir
       checker <- buildChecker ignoreFiles
       case checker of
           Left err -> error err
           Right (FileIgnoredChecker isFileIgnored) ->
                  putStrLn $
                    "Main.hs is "
                    ++ (if isFileIgnored "Main.hs"
                        then "ignored" else "not ignored")

Install

  • Using cabal: cabal install ignore
  • Using Stack: stack install ignore
  • From Source (cabal): git clone https://github.com/agrafix/ignore.git && cd ignore && cabal install
  • From Source (stack): git clone https://github.com/agrafix/ignore.git && cd ignore && stack build

Misc

Supported GHC Versions

License

Released under the BSD3 license. (c) 2015 Alexander Thiemann