dns-patterns 0.1 → 0.1.1
raw patch · 4 files changed
+10/−2 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- dns-patterns.cabal +1/−1
- lib/Network/DNS/Pattern.hs +1/−1
- test/Spec.hs +4/−0
CHANGELOG.md view
@@ -3,3 +3,7 @@ ## 0.1 -- 2022-02-09 * Initial release++## 0.1.1 -- 2022-07-06++* Allow parseAbsDomainRelax for absolute domains
dns-patterns.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: dns-patterns-version: 0.1+version: 0.1.1 author: Victor Nawothnig maintainer: Victor Nawothnig (dminuoso@icloud.com) copyright: (c) 2022 Wobcom GmbH
lib/Network/DNS/Pattern.hs view
@@ -292,7 +292,7 @@ pure d where- go = Domain <$> domainLabelP `sepBy1` A.char '.'+ go = Domain <$> domainLabelP `sepBy1` A.char '.' <* optional (A.char '.') -- | Calculate the wire-encoded length of a domain name. encodedLength :: Domain -> Int
test/Spec.hs view
@@ -91,6 +91,10 @@ , TestCase $ assertEqual "parses relative domains in relaxed mode" (Right (Domain ["foo", "bar"])) (parseAbsDomainRelax "foo.bar")++ , TestCase $ assertEqual "parses absolute domains in relaxed mode"+ (Right (Domain ["foo", "bar"]))+ (parseAbsDomainRelax "foo.bar.") ] patternParseSpecs :: Test