-
Notifications
You must be signed in to change notification settings - Fork 301
Add cabal flag and CPP option to use Loc from monad-logger. #1076
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
Conversation
I'm not sure if I'm reading this right, but it kind of looks like |
If I'm correct about that, it should probably be documented in monad-logger that that's the intended approach |
I'm trying to understand exactly why I did this. It does seem that I honestly think Here is a minimal reproduction ( # default.nix
{ pkgs ? import <nixpkgs> {} }: # nix rev 96069f7d890b90cbf4e8b4b53e15b036210ac146
with pkgs.haskell.lib;
let
monad-logger = disableCabalFlag pkgs.haskellPackages.monad-logger "template_haskell";
persistent = pkgs.haskellPackages.persistent.override { inherit monad-logger; };
in
persistent (shows above error) |
Oh, what I think the issue is is that Persistent does not import
Would you be able to try Persistent always importing like this:
and seeing if that compiles for you? |
If template haskell is disabled in monad-logger, this needs to be propagated to persistent. Otherwise, type errors ensue.
Revert monad-logger-th changes.
Nice, worked for both |
Nice, do you mind adding a note to the changelog file about this? |
Done. |
Thanks, merged! I also added documentation about this to monad-logger |
Awesome, thanks a ton 🍻 |
If template haskell is disabled in monad-logger, this needs to
be propagated to persistent. Otherwise, type errors ensue.
Note: this change will not affect any code by default, only when the flag is disabled.
Before submitting your PR, check that you've:
@since
declarations to the HaddockAfter submitting your PR: