Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big breaking change :) See description #338

Merged
merged 41 commits into from Jan 18, 2018
Merged

Big breaking change :) See description #338

merged 41 commits into from Jan 18, 2018

Conversation

snoyberg
Copy link
Owner

@snoyberg snoyberg commented Dec 20, 2017

  • Finally moves ahead with the deprecations described in RFC: Stop using the type synonyms in library type signatures #283
  • Renames ConduitM to ConduitT
  • Drops usage of monad-control wherever possible, instead favoring unliftio
  • Still maintains dependencies on exceptions due to usage of MonadThrow, but that's up for discussion
  • Drop support for GHC < 8
  • TO BE FIXED: Due to dropping the mmorph dep, Data.Conduit.Lift no longer compiles. That will probably go in its own package, but not sure

This PR is not ready for merge, I suspect there will be feedback as well as some more cleanups to throw into the mix.

Switches from ConduitM to ConduitT, adds `type ConduitM = ConduitT` for
backwards compat, and deprecates Source, Sink, Conduit, Producer,
Consumer, $$, $=, =$, and =$=. Still should do renamings to get rid of
all the deprecation warnings.
Nice catch @nh2. I'd rather use a difference list than lazy Text, as the
latter will still have some quadratic complexity. Does this address the
case you were concerned with?
This was referenced Jan 17, 2018
@snoyberg snoyberg merged commit 7f75bfc into master Jan 18, 2018
@snoyberg snoyberg deleted the just-unliftio branch January 18, 2018 07:26
@Ericson2314
Copy link

I was hoping there'd still be a monomorphic way to hoist a ResourceT after this, but that does not appear to be the case?

@snoyberg
Copy link
Owner Author

I believe transPipe (https://www.stackage.org/haddock/lts-12.0/conduit-1.3.0.3/Data-Conduit.html#v:transPipe) should fulfill that role.

@Ericson2314
Copy link

Thank you. Indeed transPipe and transResourceT do just that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants