packages feed

coco 1.0.0.0 → 1.0.1

raw patch · 3 files changed

+41/−3 lines, 3 filesdep ~textPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: text

API changes (from Hackage documentation)

+ Coco: instance Coco.To Data.Text.Internal.Lazy.Text Data.ByteString.Internal.Type.ByteString
+ Coco: instance Coco.To Data.Text.Internal.Lazy.Text Data.ByteString.Lazy.Internal.ByteString
+ Coco: instance Coco.To Data.Text.Internal.Lazy.Text GHC.Int.Int16
+ Coco: instance Coco.To Data.Text.Internal.Lazy.Text GHC.Int.Int32
+ Coco: instance Coco.To Data.Text.Internal.Lazy.Text GHC.Int.Int64
+ Coco: instance Coco.To Data.Text.Internal.Lazy.Text GHC.Int.Int8
+ Coco: instance Coco.To Data.Text.Internal.Lazy.Text GHC.Types.Int
+ Coco: instance Coco.To Data.Text.Internal.Lazy.Text GHC.Word.Word16
+ Coco: instance Coco.To Data.Text.Internal.Lazy.Text GHC.Word.Word32
+ Coco: instance Coco.To Data.Text.Internal.Lazy.Text GHC.Word.Word64
+ Coco: instance Coco.To Data.Text.Internal.Lazy.Text GHC.Word.Word8
+ Coco: instance Coco.To Data.Text.Internal.Text Data.ByteString.Internal.Type.ByteString
+ Coco: instance Coco.To Data.Text.Internal.Text Data.ByteString.Lazy.Internal.ByteString
+ Coco: instance Coco.To Data.Text.Internal.Text GHC.Int.Int16
+ Coco: instance Coco.To Data.Text.Internal.Text GHC.Int.Int32
+ Coco: instance Coco.To Data.Text.Internal.Text GHC.Int.Int64
+ Coco: instance Coco.To Data.Text.Internal.Text GHC.Int.Int8
+ Coco: instance Coco.To Data.Text.Internal.Text GHC.Types.Int
+ Coco: instance Coco.To Data.Text.Internal.Text GHC.Word.Word16
+ Coco: instance Coco.To Data.Text.Internal.Text GHC.Word.Word32
+ Coco: instance Coco.To Data.Text.Internal.Text GHC.Word.Word64
+ Coco: instance Coco.To Data.Text.Internal.Text GHC.Word.Word8
+ Coco: instance Coco.To GHC.Base.String GHC.Int.Int16
+ Coco: instance Coco.To GHC.Base.String GHC.Int.Int32
+ Coco: instance Coco.To GHC.Base.String GHC.Int.Int64
+ Coco: instance Coco.To GHC.Base.String GHC.Int.Int8
+ Coco: instance Coco.To GHC.Base.String GHC.Types.Int
+ Coco: instance Coco.To GHC.Base.String GHC.Word.Word16
+ Coco: instance Coco.To GHC.Base.String GHC.Word.Word32
+ Coco: instance Coco.To GHC.Base.String GHC.Word.Word64
+ Coco: instance Coco.To GHC.Base.String GHC.Word.Word8
+ Coco.Laws: instance Coco.Laws.Is Data.ByteString.Internal.Type.ByteString Data.Text.Internal.Lazy.Text
+ Coco.Laws: instance Coco.Laws.Is Data.ByteString.Internal.Type.ByteString Data.Text.Internal.Text
+ Coco.Laws: instance Coco.Laws.Is Data.ByteString.Lazy.Internal.ByteString Data.Text.Internal.Lazy.Text
+ Coco.Laws: instance Coco.Laws.Is Data.ByteString.Lazy.Internal.ByteString Data.Text.Internal.Text

Files

Coco.hs view
@@ -1,5 +1,7 @@ module Coco where import Data.Either.HT (maybeRight)+import Data.Word (Word8, Word16, Word32, Word64)+import Data.Int (Int8, Int16, Int32, Int64) import qualified Data.Vector as Vector import Data.Vector (Vector) import qualified Data.ByteString.Lazy as B@@ -26,6 +28,15 @@ 	to = id  instance To String Word where to = show+instance To String Word8 where to = show+instance To String Word16 where to = show+instance To String Word32 where to = show+instance To String Word64 where to = show+instance To String Int where to = show+instance To String Int8 where to = show+instance To String Int16 where to = show+instance To String Int32 where to = show+instance To String Int64 where to = show instance To String B.ByteString where to = B.toString instance To String BS.ByteString where to = BS.toString instance To String T.Text where to = T.unpack@@ -45,16 +56,38 @@ instance To BS.ByteString UUID where to = UUID.toASCIIBytes  instance To T.Text Word where to = to . to @String+instance To T.Text Word8 where to = to . to @String+instance To T.Text Word16 where to = to . to @String+instance To T.Text Word32 where to = to . to @String+instance To T.Text Word64 where to = to . to @String+instance To T.Text Int where to = to . to @String+instance To T.Text Int8 where to = to . to @String+instance To T.Text Int16 where to = to . to @String+instance To T.Text Int32 where to = to . to @String+instance To T.Text Int64 where to = to . to @String instance To T.Text String where to = T.pack+instance To T.Text B.ByteString where to = T.decodeUtf8Lenient+instance To T.Text BS.ByteString where to = to . to @B.ByteString instance To T.Text TS.Text where to = T.fromStrict instance To T.Text UUID where to = to . to @TS.Text  instance To TS.Text Word where to = to . to @String+instance To TS.Text Word8 where to = to . to @String+instance To TS.Text Word16 where to = to . to @String+instance To TS.Text Word32 where to = to . to @String+instance To TS.Text Word64 where to = to . to @String+instance To TS.Text Int where to = to . to @String+instance To TS.Text Int8 where to = to . to @String+instance To TS.Text Int16 where to = to . to @String+instance To TS.Text Int32 where to = to . to @String+instance To TS.Text Int64 where to = to . to @String instance To TS.Text String where to = TS.pack+instance To TS.Text B.ByteString where to = to . to @T.Text+instance To TS.Text BS.ByteString where to = TS.decodeUtf8Lenient instance To TS.Text T.Text where to = T.toStrict instance To TS.Text UUID where to = UUID.toText -instance To (Maybe Word) String where to = readMaybe+instance To (Maybe Word) String where to = readMaybe -- TODO: overflow protection instance To (Maybe Word) T.Text where to = to . to @String instance To (Maybe Word) TS.Text where to = to . to @String 
Coco/Laws.hs view
@@ -17,7 +17,12 @@ instance Is String TS.Text  instance Is B.ByteString BS.ByteString+instance Is B.ByteString T.Text+instance Is B.ByteString TS.Text+ instance Is BS.ByteString B.ByteString+instance Is BS.ByteString T.Text+instance Is BS.ByteString TS.Text  instance Is T.Text TS.Text instance Is TS.Text T.Text
coco.cabal view
@@ -1,6 +1,6 @@ cabal-version:      3.8 name:               coco-version:            1.0.0.0+version:            1.0.1 build-type:         Simple category:           Conversion author:             Konrad Czech@@ -25,6 +25,6 @@   vector >= 0.12.3.0 && < 0.14,   bytestring >= 0.11.4.0 && < 0.13,   utf8-string >= 1.0.1.1 && < 1.1,-  text >= 1.2.5.0 && < 2.2,+  text >= 2.1.4 && < 2.2,   uuid >= 1.3.13 && < 1.4,  exposed-modules: Coco, Coco.Laws