on master help sign in
Remove transformers-base dependency

Remove the MonadBase instance of Stream type.

commit3db189c43b95d078a67f969e12b7b5252cc95700 authorHarendra Kumar <harendra@composewell.com> dateMon 24 Oct 2022, 08:35 (4 years ago) parent26c074e
3 files changed+2−9
core/src/Streamly/Internal/Data/Stream/Type.hs−5 core/streamly-core.cabal+1−4 docs/User/ProjectRelated/Changelog.md+1
core/src/Streamly/Internal/Data/Stream/Type.hs−5
@@ -41,7 +41,6 @@ where
4141
4242import Control.Applicative (liftA2)
4343import Control.DeepSeq (NFData(..), NFData1(..))
44−import Control.Monad.Base (MonadBase(..), liftBaseDefault)
4544import Control.Monad.Catch (MonadThrow, throwM)
4645import Control.Monad.IO.Class (MonadIO(..))
4746import Control.Monad.Reader.Class (MonadReader(..))
@@ -224,10 +223,6 @@ instance Monad m => Monad (Stream m) where
224223-- Transformers
225224------------------------------------------------------------------------------
226225
227−-- XXX Need to remove the MonadBase instance
228−instance (MonadBase b m, Monad m ) => MonadBase b (Stream m) where
229− liftBase = liftBaseDefault
230−
231226instance (MonadIO m) => MonadIO (Stream m) where
232227 liftIO = lift . liftIO
233228
core/streamly-core.cabal+1−4
@@ -388,9 +388,6 @@ library
388388 , fusion-plugin-types >= 0.1 && < 0.2
389389
390390 -- XXX to be removed
391− , transformers-base >= 0.4 && < 0.5
392391 , heaps >= 0.3 && < 0.5
393− if flag(use-unliftio)
394− build-depends: unliftio-core >= 0.2 && < 0.3
395− else
392+ if !flag(use-unliftio)
396393 build-depends: monad-control >= 1.0 && < 1.1
docs/User/ProjectRelated/Changelog.md+1
@@ -18,6 +18,7 @@
1818
1919* Add `Streamly.Data.Stream.Concurrent` that provide combinators for handling
2020 non-serial streams.
21+* Remove the MonadBase instance of the SerialT type.
2122
2223### Deprecations
2324