packages feed

cgrep 6.6.23 → 6.6.24

raw patch · 3 files changed

+3/−7 lines, 3 files

Files

README.md view
@@ -7,7 +7,7 @@ Usage ----- -Cgrep 6.6.23. Usage: cgrep [OPTION] [PATTERN] files...+Cgrep 6.6.24. Usage: cgrep [OPTION] [PATTERN] files...  cgrep [OPTIONS] [ITEM] 
cgrep.cabal view
@@ -1,6 +1,6 @@ Name:                cgrep Description:         Cgrep: a context-aware grep for source codes-Version:             6.6.23+Version:             6.6.24 Synopsis:            Command line tool Homepage:            http://awgn.github.io/cgrep/ License:             GPL-2
src/Config.hs view
@@ -22,14 +22,10 @@  module Config where -import Data.List-import Data.Char- import Control.Monad import System.Directory import System.FilePath ((</>)) import System.Console.ANSI-import Data.Semigroup ((<>), Semigroup(..))  import qualified Data.Yaml  as Y import Data.Aeson@@ -88,6 +84,7 @@                <*> v .:? "colors"           .!= False                <*> v .:? "color_filename"   .!= Nothing                <*> v .:? "color_match"      .!= Nothing+ parseJSON _ = mzero   getConfig :: IO (Config, Maybe FilePath)@@ -97,7 +94,6 @@     if notNull confs         then do             conf <- Y.decodeFileEither (head confs)-            print conf             case conf of                 Left  e -> errorWithoutStackTrace $ Y.prettyPrintParseException e                 Right yconf -> return (mkConfig yconf, Just (head confs))