packages feed

static-text 0.2.0.4 → 0.2.0.5

raw patch · 4 files changed

+22/−15 lines, 4 filesdep ~template-haskell

Dependency ranges changed: template-haskell

Files

CHANGELOG.md view
@@ -1,5 +1,11 @@ # Changelog +## [0.2.0.5] - 2020-02-21++### Changed++- Dependencies bump+ ## [0.2.0.4] - 2019-01-23  ### Changed@@ -82,6 +88,7 @@  ## [0.1.0.0] - 2014-08-10 +[0.2.0.5]: https://github.com/dzhus/static-text/compare/0.2.0.4...0.2.0.5 [0.2.0.4]: https://github.com/dzhus/static-text/compare/0.2.0.3...0.2.0.4 [0.2.0.3]: https://github.com/dzhus/static-text/compare/0.2.0.2...0.2.0.3 [0.2.0.2]: https://github.com/dzhus/static-text/compare/0.2.0.1...0.2.0.2
src/Data/StaticText.hs view
@@ -27,10 +27,10 @@          -- * Constructing static texts          --          -- | See also 'C.unsafeCreate'-         createLeft+         create+       , createLeft        , createRight        , st-       , create        , replicate           -- * Working with static texts@@ -106,7 +106,7 @@     t = fromIntegral $ natVal (Proxy :: Proxy i)  --- | Attempt to safely create a Static if it matches target length.+-- | Safely create a Static if it matches target length. -- -- >>> create "foobar" :: Maybe (Static String 6) -- Just "foobar"
src/Data/StaticText/Class.hs view
@@ -4,8 +4,7 @@  {-| -Use this module when you need to add an 'IsStaticText' instance to a-type.+Class of statically-sized text-like types.  -} @@ -51,18 +50,19 @@    -- | Simply wrap a value in a Static as is, assuming any length.   ---  -- __WARNING__ Use it only when you know what you're doing.+  -- When implementing new "IsStaticText" instances, make this simply+  -- apply the constructor of "Static".   --+  -- This should only be used to implement "IsStaticText".+  --   -- For example, an expression like   ---  -- > unsafeCreate "somestring" :: Static String 50+  -- >>> unsafeCreate "somestring" :: Static String 50+  -- "somestring"   --   -- will typecheck, although the stored length information will not   -- match actual string size. This may result in wrong behaviour of   -- all functions defined for "IsStaticText".-  ---  -- When writing new "IsStaticText" instances, make this simply apply-  -- the constructor of "Static".   unsafeCreate :: a -> Static a i    -- | Forget type-level length, obtaining the underlying value.
static-text.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.12 name: static-text-version: 0.2.0.4+version: 0.2.0.5 license: BSD3 license-file: LICENSE maintainer: dima@dzhus.org@@ -44,7 +44,7 @@     ghc-options: -Wall -Wcompat     build-depends:         base <5,-        template-haskell <2.15+        template-haskell <2.16          if flag(bytestring)         cpp-options: -DWITH_BS@@ -73,7 +73,7 @@         bytestring <0.11,         markdown-unlit <0.6,         static-text -any,-        template-haskell <2.15+        template-haskell <2.16  test-suite static-text-doctests     type: exitcode-stdio-1.0@@ -88,7 +88,7 @@         base <5,         doctest <0.17,         doctest-driver-gen <0.4,-        template-haskell <2.15+        template-haskell <2.16  test-suite static-text-example     type: exitcode-stdio-1.0@@ -104,4 +104,4 @@         static-text -any,         tasty <1.3,         tasty-hunit <0.11,-        template-haskell <2.15+        template-haskell <2.16