packages feed

htmx-servant 0.2.0.1 → 0.2.0.2

raw patch · 2 files changed

+9/−3 lines, 2 filesdep ~htmxdep ~htmx-lucidPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: htmx, htmx-lucid

API changes (from Hackage documentation)

Files

htmx-servant.cabal view
@@ -1,6 +1,6 @@ cabal-version:      3.6 name:               htmx-servant-version:            0.2.0.1+version:            0.2.0.2 synopsis:           Use htmx with servant description:   Please see the README on GitHub at <https://github.com/JonathanLorimer/htmx#readme>@@ -34,8 +34,8 @@   hs-source-dirs:   src   build-depends:     , base        >=4.7      && <5-    , htmx-    , htmx-lucid+    , htmx        == 0.1.0.2+    , htmx-lucid  == 0.2.0.1     , lucid2      >=0.0.20221012     , servant     >=0.19     && <0.30     , text        >=2        && <3
src/Htmx/Servant/Lucid.hs view
@@ -31,23 +31,29 @@ import Servant.API (ToHttpApiData (..), toUrlPiece) import Servant.Links (Link) +-- | Type-safe version of 'hxDelete_' hxDeleteSafe_ :: Link -> Attributes hxDeleteSafe_ = hxDelete_ . toUrl +-- | Type-safe version of 'hxGet_' hxGetSafe_ :: Link -> Attributes hxGetSafe_ = hxGet_ . toUrl +-- | Type-safe version of 'hxPatch_' hxPatchSafe_ :: Link -> Attributes hxPatchSafe_ = hxPatch_ . toUrl +-- | Type-safe version of 'hxPatch_' hxPostSafe_ :: Link -> Attributes hxPostSafe_ = hxPost_ . toUrl +-- | Type-safe version of 'hxPushUrl_' hxPushUrlSafe_ :: Either Bool Link -> Attributes hxPushUrlSafe_ boolOrUrl = hxPushUrl_ $ case boolOrUrl of     Left bool -> if bool then "true" else "false"     Right url -> toUrl url +-- | Type-safe version of 'hxPut_' hxPutSafe_ :: Link -> Attributes hxPutSafe_ = hxPut_ . toUrl