packages feed

text-show 3.7.5 → 3.8

raw patch · 5 files changed

+18/−17 lines, 5 filesdep ~QuickCheck

Dependency ranges changed: QuickCheck

Files

CHANGELOG.md view
@@ -1,3 +1,9 @@+## 3.8 [2019.03.19]+* Remove the `TextShow I16` instance from `TextShow.Data.Text`. The usefulness+  of this instance was dubious at best, and moreover, it was actively causing+  issues when building `text-show` with `reflex-platform` (see+  [#40](https://github.com/RyanGlScott/text-show/issues/40)).+ ### 3.7.5 [2018.10.07] * _Actually_ make `showbEFloat`'s behavior match that of `showEFloat` in   `base-4.12`.
src/TextShow/Data/Text.hs view
@@ -13,15 +13,20 @@ Stability:   Provisional Portability: GHC -'TextShow' instances for 'Text' types.+Defines 'TextShow' instances for 'Text' types, as well as other miscellaneous+data types from the @text@ package. +Note that this module deliberately does not define a 'TextShow' instance for+the @I16@ data type from @Data.Text.Foreign@, as that module is not available+on certain widely used variants of GHC (e.g., @reflex-platform@). See #40+for more details. If this is a problem for you, please file an issue.+ /Since: 2/ -} module TextShow.Data.Text () where  import qualified Data.Text as TS import           Data.Text.Encoding.Error (UnicodeException(..))-import           Data.Text.Foreign (I16) import qualified Data.Text.Lazy as TL import           Data.Text.Lazy.Builder (Builder, fromString, toLazyText) @@ -59,9 +64,6 @@ instance TextShow Builder where     showb = showb . toLazyText     {-# INLINE showb #-}---- | /Since: 2/-$(deriveTextShow ''I16)  -- | /Since: 2/ instance TextShow UnicodeException where
tests/Instances/Data/Text.hs view
@@ -17,7 +17,6 @@ module Instances.Data.Text () where  import Data.Text.Encoding.Error (UnicodeException(..))-import Data.Text.Foreign (I16) import Data.Text.Lazy.Builder (Builder, fromString)  #if MIN_VERSION_text(1,0,0)@@ -37,14 +36,11 @@ import Prelude () import Prelude.Compat -import Test.QuickCheck (Arbitrary(..), arbitraryBoundedEnum)+import Test.QuickCheck (Arbitrary(..)) import Test.QuickCheck.Instances ()  instance Arbitrary Builder where     arbitrary = fromString <$> arbitrary--instance Arbitrary I16 where-    arbitrary = arbitraryBoundedEnum  instance Arbitrary UnicodeException where     arbitrary = genericArbitrary
tests/Spec/Data/TextSpec.hs view
@@ -26,7 +26,6 @@ import           Data.Text.Encoding (Decoding) #endif import           Data.Text.Encoding.Error (UnicodeException)-import           Data.Text.Foreign (I16) #if MIN_VERSION_text(1,1,0) import           Data.Text.Internal.Fusion.Size (Size) #endif@@ -43,8 +42,6 @@         matchesTextShowSpec (Proxy :: Proxy TS.Text)     describe "lazy Text" $         matchesTextShowSpec (Proxy :: Proxy TL.Text)-    describe "I16" $-        matchesTextShowSpec (Proxy :: Proxy I16)     describe "UnicodeException" $         matchesTextShowSpec (Proxy :: Proxy UnicodeException) #if MIN_VERSION_text(1,0,0)
text-show.cabal view
@@ -1,5 +1,5 @@ name:                text-show-version:             3.7.5+version:             3.8 synopsis:            Efficient conversion of values into Text description:         @text-show@ offers a replacement for the @Show@ typeclass intended                      for use with @Text@ instead of @String@s. This package was created@@ -49,8 +49,8 @@                    , GHC == 7.10.3                    , GHC == 8.0.2                    , GHC == 8.2.2-                   , GHC == 8.4.3-                   , GHC == 8.6.1+                   , GHC == 8.4.4+                   , GHC == 8.6.4 extra-source-files:  CHANGELOG.md, README.md, include/*.h cabal-version:       >=1.10 @@ -166,7 +166,7 @@                      , semigroups            >= 0.17   && < 1                      , tagged                >= 0.4.4  && < 1                      , text                  >= 0.11.1 && < 1.3-                     , th-abstraction        >= 0.2.2  && < 1+                     , th-abstraction        >= 0.2.2  && < 0.3                      , th-lift               >= 0.7.6  && < 1                      , void                  >= 0.5    && < 1