packages feed

ini 0.3.4 → 0.3.5

raw patch · 2 files changed

+8/−4 lines, 2 filesdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

ini.cabal view
@@ -1,5 +1,5 @@ name:                ini-version:             0.3.4+version:             0.3.5 synopsis:            Quick and easy configuration files in the INI format. description:         Quick and easy configuration files in the INI format. license:             BSD3
src/Data/Ini.hs view
@@ -64,7 +64,7 @@   )   where -import           Control.Applicative        (many)+import           Control.Applicative import           Control.Monad import           Data.Attoparsec.Combinator import           Data.Attoparsec.Text@@ -173,7 +173,9 @@ -- | A section. Format: @[foo]@. Conventionally, @[FOO]@. sectionParser :: Parser (Text,HashMap Text Text) sectionParser =-  do skipComments+  do skipEndOfLine+     skipComments+     skipEndOfLine      _ <- char '['      name <- takeWhile (\c -> c /=']' && c /= '[')      _ <- char ']'@@ -184,7 +186,9 @@ -- | A key-value pair. Either @foo: bar@ or @foo=bar@. keyValueParser :: Parser (Text,Text) keyValueParser =-  do skipComments+  do skipEndOfLine+     skipComments+     skipEndOfLine      key <- takeWhile1 (\c -> not (isDelim c || c == '[' || c == ']'))      delim <- satisfy isDelim      value <- fmap (clean delim) (takeWhile (not . isEndOfLine))