packages feed

keyword-args 0.1.0.1 → 0.1.0.2

raw patch · 2 files changed

+4/−2 lines, 2 files

Files

keyword-args.cabal view
@@ -1,5 +1,5 @@ name:                keyword-args-version:             0.1.0.1+version:             0.1.0.2 synopsis:            Extract data from a keyword-args config file format  description: Extracts data from a configuration file with keywords
src/Data/KeywordArgs/Parse.hs view
@@ -13,6 +13,9 @@  import Control.Applicative ((<*), (*>), (<$>)) +-- | Returns a parser for input of a keyword, followed by a space,+-- followed by one or more arguments. Any comments (text preceeded+-- by a '#') will be ignored until the end of the line. configParser :: Parser [(String, String)] configParser = catMaybes <$> many line @@ -36,7 +39,6 @@  comment :: Parser () comment =-  -- ^ use `try` to avoid consuming leading spaces if no match   try (many space *> char '#')   *> manyTill anyChar endOfLineOrInput   *> return ()