packages feed

webgear-core 1.4.0 → 1.5.0

raw patch · 3 files changed

+12/−6 lines, 3 filesdep ~http-api-datadep ~josedep ~wai-app-staticPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: http-api-data, jose, wai-app-static

API changes (from Hackage documentation)

- WebGear.Core.MIMETypes: instance WebGear.Core.MIMETypes.MIMEType (WebGear.Core.MIMETypes.FormData a)
+ WebGear.Core.MIMETypes: instance WebGear.Core.MIMETypes.MIMEType (WebGear.Core.MIMETypes.FormData m a)
- WebGear.Core.MIMETypes: FormData :: ParseRequestBodyOptions -> BackEnd a -> FormData a
+ WebGear.Core.MIMETypes: FormData :: ParseRequestBodyOptions -> m (BackEnd a) -> FormData (m :: Type -> Type) a
- WebGear.Core.MIMETypes: [backendOptions] :: FormData a -> BackEnd a
+ WebGear.Core.MIMETypes: [backendOptions] :: FormData (m :: Type -> Type) a -> m (BackEnd a)
- WebGear.Core.MIMETypes: [parseOptions] :: FormData a -> ParseRequestBodyOptions
+ WebGear.Core.MIMETypes: [parseOptions] :: FormData (m :: Type -> Type) a -> ParseRequestBodyOptions
- WebGear.Core.MIMETypes: data FormData a
+ WebGear.Core.MIMETypes: data FormData (m :: Type -> Type) a

Files

CHANGELOG.md view
@@ -2,6 +2,11 @@  ## [Unreleased] +## [1.5.0] - 2025-07-23++### Changed+- Make FormData backend monadic (breaking change) (#59)+ ## [1.4.0] - 2025-05-19  ### Added@@ -76,7 +81,8 @@ - Extracted webgear-core from webgear-server - New arrow based API -[Unreleased]: https://github.com/haskell-webgear/webgear/compare/v1.4.0...HEAD+[Unreleased]: https://github.com/haskell-webgear/webgear/compare/v1.5.0...HEAD+[1.5.0]: https://github.com/haskell-webgear/webgear/releases/tag/v1.5.0 [1.4.0]: https://github.com/haskell-webgear/webgear/releases/tag/v1.4.0 [1.3.1]: https://github.com/haskell-webgear/webgear/releases/tag/v1.3.1 [1.3.0]: https://github.com/haskell-webgear/webgear/releases/tag/v1.3.0
src/WebGear/Core/MIMETypes.hs view
@@ -59,9 +59,9 @@ --------------------------------------------------------------------------------  -- | The multipart/form-data MIME type-data FormData a = FormData+data FormData m a = FormData   { parseOptions :: Wai.Parse.ParseRequestBodyOptions-  , backendOptions :: Wai.Parse.BackEnd a+  , backendOptions :: m (Wai.Parse.BackEnd a)   }  {- | Result of parsing a multipart/form-data body from a request.@@ -72,8 +72,8 @@   , formDataFiles :: [Wai.Parse.File a]   } -instance MIMEType (FormData a) where-  mimeType :: FormData a -> HTTP.MediaType+instance MIMEType (FormData m a) where+  mimeType :: FormData m a -> HTTP.MediaType   mimeType _ = "multipart/form-data"   {-# INLINE mimeType #-} 
webgear-core.cabal view
@@ -1,7 +1,7 @@ cabal-version:       2.4  name:                webgear-core-version:             1.4.0+version:             1.5.0 synopsis:            Composable, type-safe library to build HTTP APIs description:         WebGear is a library to for building composable, type-safe HTTP APIs.