on master help sign in
Remove transformers-base dependency
3db189cHarendra Kumar
core/src/Streamly/Internal/Data/Stream/Type.hs−5
@@ -41,7 +41,6 @@ where
41
41
42import Control.Applicative (liftA2)
42import Control.Applicative (liftA2)
43import Control.DeepSeq (NFData(..), NFData1(..))
43import Control.DeepSeq (NFData(..), NFData1(..))
44−import Control.Monad.Base (MonadBase(..), liftBaseDefault)
45import Control.Monad.Catch (MonadThrow, throwM)
44import Control.Monad.Catch (MonadThrow, throwM)
46import Control.Monad.IO.Class (MonadIO(..))
45import Control.Monad.IO.Class (MonadIO(..))
47import Control.Monad.Reader.Class (MonadReader(..))
46import Control.Monad.Reader.Class (MonadReader(..))
@@ -224,10 +223,6 @@ instance Monad m => Monad (Stream m) where
224-- Transformers
223-- Transformers
225------------------------------------------------------------------------------
224------------------------------------------------------------------------------
226
225
227−-- XXX Need to remove the MonadBase instance
228−instance (MonadBase b m, Monad m ) => MonadBase b (Stream m) where
229− liftBase = liftBaseDefault
230−
231instance (MonadIO m) => MonadIO (Stream m) where
226instance (MonadIO m) => MonadIO (Stream m) where
232 liftIO = lift . liftIO
227 liftIO = lift . liftIO
233
228
core/streamly-core.cabal+1−4
@@ -388,9 +388,6 @@ library
388 , fusion-plugin-types >= 0.1 && < 0.2
388 , fusion-plugin-types >= 0.1 && < 0.2
389
389
390 -- XXX to be removed
390 -- XXX to be removed
391− , transformers-base >= 0.4 && < 0.5
392 , heaps >= 0.3 && < 0.5
391 , heaps >= 0.3 && < 0.5
393− if flag(use-unliftio)
392+ if !flag(use-unliftio)
394− build-depends: unliftio-core >= 0.2 && < 0.3
395− else
396 build-depends: monad-control >= 1.0 && < 1.1
393 build-depends: monad-control >= 1.0 && < 1.1
docs/User/ProjectRelated/Changelog.md+1
@@ -18,6 +18,7 @@
18
18
19* Add `Streamly.Data.Stream.Concurrent` that provide combinators for handling
19* Add `Streamly.Data.Stream.Concurrent` that provide combinators for handling
20 non-serial streams.
20 non-serial streams.
21+* Remove the MonadBase instance of the SerialT type.
21
22
22### Deprecations
23### Deprecations
23
24