packages feed

slugger 0.1.0.1 → 0.1.0.2

raw patch · 4 files changed

+26/−12 lines, 4 filesdep ~textdep ~text-icuPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: text, text-icu

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for slugger +## 0.1.0.2 -- 2023-01-31++* Relax version bounds on dependencies a bit+ ## 0.1.0.1 -- 2021-07-27  * Remove `ci` flag so we can better support older GHC
README.md view
@@ -55,15 +55,17 @@ supported. Contributions are welcome for more extensive tests or tests for additional languages. -- [x] Dansk     (Danish)-- [x] Deutsche  (German)-- [x] English-- [x] Español   (Spanish)-- [x] Français  (French)-- [x] Íslenskur (Icelandic)-- [x] Polskie   (Polish)-- [x] Svenska   (Swedish)-- [x] Türk      (Turkish)+* Dansk    (Danish)+* Deutsch  (German)+* English+* Español  (Spanish)+* Français (French)+* Íslenska (Icelandic)+* Italiano (Italian)+* Polski   (Polish)+* Suomi    (Finnish)+* Svenska  (Swedish)+* Türkçe   (Turkish)  ## Development 
slugger.cabal view
@@ -1,6 +1,6 @@ cabal-version:        3.0 name:                 slugger-version:              0.1.0.1+version:              0.1.0.2 synopsis:             Clean URI slugs for Haskell description:          Convert multi-language text to a US-ASCII, lowercase, hyphenated, URI-friendly "slug" homepage:             https://github.com/rpearce/slugger@@ -29,8 +29,8 @@ common deps     build-depends:         base     >= 4.8 && < 5-      , text     >= 1   && < 1.3-      , text-icu >= 0.7 && < 0.8+      , text     >= 1   && < 3+      , text-icu >= 0.7 && < 0.9  common self-dep     build-depends: slugger
test/SluggerTest.hs view
@@ -57,6 +57,10 @@                 SluggerText.toSlug (T.pack "GARÇON - déjà , Forêt — Zoë")                     `shouldBe` T.pack "garcon-deja-foret-zoe" +            it "handles Finnish: Saisinko leipää? Šakki. Džonkki" $ do+                SluggerText.toSlug (T.pack "Saisinko leipää? Šakki. Džonkki")+                    `shouldBe` T.pack "saisinko-leipaa-sakki-dzonkki"+             it "handles German: Straße, müde, Äpfel und Ökologie" $ do                 SluggerText.toSlug (T.pack "Straße, müde, Äpfel und Ökologie")                     `shouldBe` T.pack "strasse-mude-apfel-und-okologie"@@ -64,6 +68,10 @@             it "handles Icelandic: (Ég) er kominn aftur (á ný) Inn í þig (Það er) svo gott að vera (hér) En stoppa stutt við" $ do                 SluggerText.toSlug (T.pack "(Ég) er kominn aftur (á ný) Inn í þig (Það er) svo gott að vera (hér) En stoppa stutt við")                     `shouldBe` T.pack "eg-er-kominn-aftur-a-ny-inn-i-thig-thad-er-svo-gott-ad-vera-her-en-stoppa-stutt-vid"++            it "handles Italian: Non c’è di che." $ do+                SluggerText.toSlug (T.pack "Non c’è di che.")+                    `shouldBe` T.pack "non-c-e-di-che"              it "handles Polish: Żółć, Szczęście, & Następstw" $ do                 SluggerText.toSlug (T.pack "Żółć, Szczęście, & Następstw")