stringable 0.1.0 → 0.1.1
raw patch · 2 files changed
+5/−5 lines, 2 files
Files
- Data/Stringable.hs +4/−4
- stringable.cabal +1/−1
Data/Stringable.hs view
@@ -142,12 +142,12 @@ withByteStringLen str f = BU.unsafeUseAsCStringLen str (uncurry f) instance CStringable T.Text where- withCStringable = withCStringable . E.encodeUtf8- withCStringLenable = withCStringLenable . E.encodeUtf8+ withCStringable = withCStringable . E.encodeUtf8 . flip T.snoc '\0'+ withCStringLenable = withCStringLenable . E.encodeUtf8 . flip T.snoc '\0' instance CStringable TL.Text where- withCStringable = withCStringable . EL.encodeUtf8- withCStringLenable = withCStringLenable . EL.encodeUtf8+ withCStringable = withCStringable . EL.encodeUtf8 . flip TL.snoc '\0'+ withCStringLenable = withCStringLenable . EL.encodeUtf8 . flip TL.snoc '\0' instance CStringable B.ByteString where withCStringable = withByteString
stringable.cabal view
@@ -1,5 +1,5 @@ Name: stringable-Version: 0.1.0+Version: 0.1.1 Synopsis: A Stringable type class, in the spirit of Foldable and Traversable Description: 'Data.Stringable' provides a type class with a set of functions for converting to and from the most often used string-linke types in