packages feed

htmx-servant 0.1.0.0 → 0.2.0.0

raw patch · 2 files changed

+9/−9 lines, 2 filesdep +lucid2dep −lucidPVP ok

version bump matches the API change (PVP)

Dependencies added: lucid2

Dependencies removed: lucid

API changes (from Hackage documentation)

- Htmx.Servant.Lucid: hxDeleteSafe_ :: Link -> Attribute
+ Htmx.Servant.Lucid: hxDeleteSafe_ :: Link -> Attributes
- Htmx.Servant.Lucid: hxGetSafe_ :: Link -> Attribute
+ Htmx.Servant.Lucid: hxGetSafe_ :: Link -> Attributes
- Htmx.Servant.Lucid: hxPatchSafe_ :: Link -> Attribute
+ Htmx.Servant.Lucid: hxPatchSafe_ :: Link -> Attributes
- Htmx.Servant.Lucid: hxPostSafe_ :: Link -> Attribute
+ Htmx.Servant.Lucid: hxPostSafe_ :: Link -> Attributes
- Htmx.Servant.Lucid: hxPushUrlSafe_ :: Either Bool Link -> Attribute
+ Htmx.Servant.Lucid: hxPushUrlSafe_ :: Either Bool Link -> Attributes
- Htmx.Servant.Lucid: hxPutSafe_ :: Link -> Attribute
+ Htmx.Servant.Lucid: hxPutSafe_ :: Link -> Attributes

Files

htmx-servant.cabal view
@@ -1,6 +1,6 @@ cabal-version:      3.6 name:               htmx-servant-version:            0.1.0.0+version:            0.2.0.0 synopsis:           Use htmx with servant description:   Please see the README on GitHub at <https://github.com/JonathanLorimer/htmx#readme>@@ -36,7 +36,7 @@     , base        >=4.7      && <5     , htmx     , htmx-lucid-    , lucid       >=2.9.12.1 && <2.11.20230408.0+    , lucid2      >=0.0.20221012     , servant     >=0.19     && <0.30     , text        >=2        && <3 
src/Htmx/Servant/Lucid.hs view
@@ -27,28 +27,28 @@     hxPatch_,     hxPut_,  )-import Lucid.Base (Attribute)+import Lucid.Base (Attributes) import Servant.API (ToHttpApiData (..), toUrlPiece) import Servant.Links (Link) -hxDeleteSafe_ :: Link -> Attribute+hxDeleteSafe_ :: Link -> Attributes hxDeleteSafe_ = hxDelete_ . toUrl -hxGetSafe_ :: Link -> Attribute+hxGetSafe_ :: Link -> Attributes hxGetSafe_ = hxGet_ . toUrl -hxPatchSafe_ :: Link -> Attribute+hxPatchSafe_ :: Link -> Attributes hxPatchSafe_ = hxPatch_ . toUrl -hxPostSafe_ :: Link -> Attribute+hxPostSafe_ :: Link -> Attributes hxPostSafe_ = hxPost_ . toUrl -hxPushUrlSafe_ :: Either Bool Link -> Attribute+hxPushUrlSafe_ :: Either Bool Link -> Attributes hxPushUrlSafe_ boolOrUrl = hxPushUrl_ $ case boolOrUrl of     Left bool -> if bool then "true" else "false"     Right url -> toUrl url -hxPutSafe_ :: Link -> Attribute+hxPutSafe_ :: Link -> Attributes hxPutSafe_ = hxPut_ . toUrl  toUrl :: (ToHttpApiData a) => a -> Text