packages feed

symbolize 0.1.0.1 → 0.1.0.2

raw patch · 4 files changed

+10/−15 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -8,4 +8,8 @@  ## Unreleased -## 0.1.0.0 - YYYY-MM-DD+## 0.1.0.1 / 0.1.0.2 - 2023-11-24+Fixes in the README and package description only, for better rendering on Hackage.++## 0.1.0.0 - 2023-11-24+Initial version
README.md view
@@ -1,7 +1,11 @@ # Symbolize [![Hackage](http://img.shields.io/hackage/v/symbolize.svg)](https://hackage.haskell.org/package/symbolize)+[![HackageDocumentation](https://img.shields.io/badge/documentation-available-blue)](https://hackage.haskell.org/package/symbolize/docs/Symbolize.html)+[![test](https://github.com/Qqwy/haskell-symbolize/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/Qqwy/haskell-symbolize/actions/workflows/test.yaml)  Haskell library implementing a global Symbol Table, with garbage collection.++[API Documentation](https://hackage.haskell.org/package/symbolize/docs/Symbolize.html)  Symbols, also known as Atoms or Interned Strings, are a common technique to reduce memory usage and improve performance when using many small strings.
symbolize.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           symbolize-version:        0.1.0.1+version:        0.1.0.2 synopsis:       Efficient global Symbol table, with Garbage Collection. description:    Symbols, also known as Atoms or Interned Strings, are a common technique                 to reduce memory usage and improve performance when using many small strings.
test/suite/SymbolizeTest.hs view
@@ -13,19 +13,6 @@ import qualified System.Mem import Test.Tasty.HUnit -unit_simpleInternUninternTest :: IO ()-unit_simpleInternUninternTest = do-  System.Mem.performGC--  let str = "hello" :: Text-  let !symbol = Symbolize.intern str--  size <- Symbolize.globalSymbolTableSize-  size @?= 1--  let str2 = Symbolize.unintern symbol-  str2 @?= str- hprop_symbolTableIsIdempotent :: Property hprop_symbolTableIsIdempotent = withTests 1000 $ property $ do   texts <- forAll $ Gen.list (Range.linear 0 200) (Gen.text (Range.linear 0 20) Gen.unicode)