bytestring-from 0.1 → 0.1.1
raw patch · 2 files changed
+4/−1 lines, 2 files
Files
- bytestring-from.cabal +1/−1
- src/Data/ByteString/From.hs +3/−0
bytestring-from.cabal view
@@ -1,5 +1,5 @@ name: bytestring-from-version: 0.1+version: 0.1.1 synopsis: A type-class to convert values from ByteString. license: OtherLicense license-file: LICENSE
src/Data/ByteString/From.hs view
@@ -66,6 +66,9 @@ instance FromByteString Double where parser = signed double <|> fail "Invalid Double" +instance FromByteString Integer where+ parser = hexLiteral <|> fail "Invalid Integer"+ instance FromByteString Int where parser = hexLiteral <|> fail "Invalid Int"