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

Replace usage of 'mtl' with 'transformers' #81

Merged
merged 1 commit into from
Mar 19, 2019

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented Mar 18, 2019

Issue Number

Overview

  • I have replaced usage of 'mtl' monad transformers with the equivalent from 'transformers'

Comments

There's no strong feeling about using one or another. I noticed we were using ExceptT from mtl but StateT from transformers in various places in the code. So for consistency, I've opted for using the building blocks from transformers. mtl is built on top of transformers anyway now, but we do not use any of the classy stuff from mtl at the moment (and there's no clear reason we will in the near future?).

@KtorZ KtorZ self-assigned this Mar 18, 2019
@KtorZ KtorZ requested a review from Anviking March 18, 2019 18:05
@Anviking
Copy link
Collaborator

let's stick with this one and only pull 'mtl' if we feel it becomes a need

👍

@paweljakubas
Copy link
Contributor

paweljakubas commented Mar 19, 2019

it is good to choose one (the same for the lens), the slimmest one but good enough to service our needs. Started using only transformers primitives in my PRs

@paweljakubas paweljakubas self-requested a review March 19, 2019 07:49
There's no strong feeling about using one or another. Transformers is
slightly simpler as it doesn't introduce any of the type-classes and
functional dependencies that 'mtl' adds. Though, we only use the power
of 'transformers' so far, and thus, for consistency at least, let's
stick with this one and only pull 'mtl' if we feel it becomes a need
@KtorZ KtorZ force-pushed the KtorZ/mtl-vs-transformers branch from c7813bb to 8be546a Compare March 19, 2019 07:58
@KtorZ KtorZ merged commit d3cca01 into master Mar 19, 2019
@KtorZ KtorZ deleted the KtorZ/mtl-vs-transformers branch March 19, 2019 10:03
@KtorZ KtorZ mentioned this pull request Mar 19, 2019
3 tasks
@Anviking
Copy link
Collaborator

@KtorZ
Copy link
Member Author

KtorZ commented Mar 19, 2019

You would just remove the MonadReader and directly work with a ReaderT (which is already what we do anyway because GHC can't figure out the right type to pick otherwise).

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

3 participants