Add cabal flag and CPP option to use Loc from monad-logger.#1076
Add cabal flag and CPP option to use Loc from monad-logger.#1076MaxGabriel merged 5 commits intoyesodweb:masterfrom dmjio:monad-logger-th
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:
@sincedeclarations to the HaddockAfter submitting your PR: