config-ini 0.2.5.0 → 0.2.6.0
raw patch · 3 files changed
+11/−10 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- config-ini.cabal +6/−5
- src/Data/Ini/Config/Raw.hs +4/−4
- test/ini-compat/Main.hs +1/−1
config-ini.cabal view
@@ -1,5 +1,5 @@ name: config-ini-version: 0.2.5.0+version: 0.2.6.0 synopsis: A library for simple INI-based configuration files. homepage: https://github.com/aisamanra/config-ini bug-reports: https://github.com/aisamanra/config-ini/issues@@ -22,10 +22,11 @@ category: Configuration build-type: Simple cabal-version: 1.18-tested-with: GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.2, GHC == 9.2.4, GHC == 9.4.2-extra-source-files:+tested-with: GHC == 8.8.4, GHC == 8.10.7, GHC == 9.0.2, GHC == 9.2.4, GHC == 9.4.2, GHC == 9.6.2+extra-doc-files: README.md,- CHANGELOG.md,+ CHANGELOG.md+extra-source-files: test/prewritten/cases/*.hs, test/prewritten/cases/*.ini @@ -49,7 +50,7 @@ , containers >=0.5 && <0.7 , text >=1.2.2 && <2.1 , unordered-containers >=0.2.7 && <0.3- , transformers >=0.4.1 && <0.6+ , transformers >=0.4.1 && <0.7 , megaparsec >=7 && <10 default-language: Haskell2010
src/Data/Ini/Config/Raw.hs view
@@ -164,7 +164,7 @@ sComment :: Parser BlankLine sComment = do- c <- oneOf ";#"+ c <- oneOf [';', '#'] txt <- T.pack `fmap` manyTill anySingle eol return (CommentLine c txt) @@ -176,7 +176,7 @@ pSection leading prevs = do start <- getCurrentLine void (char '[')- name <- T.pack `fmap` some (noneOf "[]")+ name <- T.pack `fmap` some (noneOf ['[', ']']) void (char ']') void eol comments <- sBlanks@@ -211,8 +211,8 @@ pPair :: Seq BlankLine -> Parser (NormalizedText, IniValue) pPair leading = do pos <- getCurrentLine- key <- T.pack `fmap` some (noneOf "[]=:")- delim <- oneOf ":="+ key <- T.pack `fmap` some (noneOf ['[', ']', '=', ':'])+ delim <- oneOf [':', '='] val <- T.pack `fmap` manyTill anySingle eol return ( normalize key,
test/ini-compat/Main.hs view
@@ -82,7 +82,7 @@ Gen.list (Range.linear 0 5) $ Gen.choice [ return I2.BlankLine,- I2.CommentLine <$> Gen.element ";#" <*> textChunk+ I2.CommentLine <$> Gen.element (";#" :: String) <*> textChunk ] mkRichIni :: Gen I2.RawIni