AttoBencode 0.3.0.0 → 0.3.1.0
raw patch · 2 files changed
+4/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- AttoBencode.cabal +1/−1
- src/Data/AttoBencode/Types.hs +3/−0
AttoBencode.cabal view
@@ -1,5 +1,5 @@ Name: AttoBencode-Version: 0.3.0.0+Version: 0.3.1.0 Synopsis: Fast Bencode encoding and parsing library Homepage: http://bitbucket.org/FlorianHartwig/attobencode License: BSD3
src/Data/AttoBencode/Types.hs view
@@ -76,6 +76,9 @@ fromBencode (BInt n) = Just n fromBencode _ = Nothing +instance FromBencode Int where+ fromBencode bv = fmap fromInteger $ fromBencode bv+ instance FromBencode BValue where fromBencode = Just