From fe853d448e7189716504874c750244dca697c3e4 Mon Sep 17 00:00:00 2001 From: Jack Kelly Date: Mon, 5 Aug 2024 17:44:19 +1000 Subject: [PATCH] Use `unliftio-core` instead of `unliftio` --- CHANGELOG.md | 5 +++++ src/UnliftIO/Servant/Server.hs | 2 +- unliftio-servant-server.cabal | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 414656d..6b34f18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Revision history for unliftio-servant-server +## 0.1.0.1 -- 2024-08-06 + +* Use `unliftio-core` instead of `unliftio` for smaller dependency + footprint. + ## 0.1.0.0 -- 2024-07-05 * First version. Released on an unsuspecting world. diff --git a/src/UnliftIO/Servant/Server.hs b/src/UnliftIO/Servant/Server.hs index 50b8e4b..c2059ce 100644 --- a/src/UnliftIO/Servant/Server.hs +++ b/src/UnliftIO/Servant/Server.hs @@ -56,6 +56,7 @@ where import Control.Monad ((>=>)) import Control.Monad.Except (ExceptT, runExceptT, throwError) +import Control.Monad.IO.Unlift (MonadUnliftIO (..), liftIO) import Data.Proxy (Proxy) import Servant.API.Generic (AsApi, GenericServant, ToServant, ToServantApi) import Servant.Server @@ -68,7 +69,6 @@ import Servant.Server import qualified Servant.Server as Servant import Servant.Server.Generic (AsServerT) import qualified Servant.Server.Generic as Servant -import UnliftIO (MonadUnliftIO (..), liftIO) -- | Convert a Servant API into an 'Application', by unlifting the -- monad in which it runs. diff --git a/unliftio-servant-server.cabal b/unliftio-servant-server.cabal index bc444c1..56d307f 100644 --- a/unliftio-servant-server.cabal +++ b/unliftio-servant-server.cabal @@ -41,6 +41,6 @@ library , mtl >=2.2.2 && <2.4 , servant >=0.19 && <0.21 , servant-server >=0.19 && <0.21 - , unliftio >=0.1.0.0 && <0.3.0.0 + , unliftio-core >=0.1.0.0 && <0.3.0.0 default-language: Haskell2010