This PR is primarily inspired by https://github.com/yesodweb/persistent/pull/1076. Persistent was importing Loc directly from template-haskell and unnecessarily depending on that package, causing issues for users.
This PR documents what I think is the intended usage, importing Loc from monad-logger instead. Additionally, I think the documentation around Loc is good for even regular users, since it explains it's a re-export from template-haskell.
I wasn't able to add documentation directly to Loc with the standard -- |, I'm guessing because Loc is a re-export. So I added the documentation directly above the export of Loc.
This PR is primarily inspired by https://github.com/yesodweb/persistent/pull/1076. Persistent was importing
Loc
directly from template-haskell and unnecessarily depending on that package, causing issues for users.This PR documents what I think is the intended usage, importing
Loc
from monad-logger instead. Additionally, I think the documentation around Loc is good for even regular users, since it explains it's a re-export from template-haskell.I wasn't able to add documentation directly to
Loc
with the standard-- |
, I'm guessing becauseLoc
is a re-export. So I added the documentation directly above the export ofLoc
.