<div dir="auto"><div>I doubt it'll be removed, it's occasionally useful and I don't think it costs much to maintain.</div><div dir="auto"><br></div><div dir="auto">The note does indicate that your proposed usage isn't exactly recommended, and I agree: I would instrument everything all the time, to avoid all the problems associated with monkey-patching and having two different sets of performance characteristics to worry about, but it is at least possible to do what you're trying to do with this method.</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto"><br></div><div dir="auto"><br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On 27 Jan 2017 08:30, "Saurabh Nanda" <<a href="mailto:saurabhnanda@gmail.com">saurabhnanda@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="quoted-text"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Yes, I think so, with the PackageImports extension.<div dir="auto"><br></div><div dir="auto"><a href="https://downloads.haskell.org/~ghc/7.8.2/docs/html/users_guide/syntax-extns.html#package-imports" target="_blank">https://downloads.haskell.org/<wbr>~ghc/7.8.2/docs/html/users_gui<wbr>de/syntax-extns.html#package-<wbr>imports</a></div></div></blockquote><div><br></div></div><div>Thank you for this. If this works, it makes using instrumentedscotty & instrumentedopaleye easier to use.. Btw, there's a note in the docs:</div><div><div><br></div><div>[...] Note: you probably don't need to use this feature, it was added mainly so that we can build backwards-compatible versions of packages when APIs change. It can lead to fragile dependencies in the common case: modules occasionally move from one package to another, rendering any package-qualified imports broken. [...]</div><div><br></div><div>I hope GHC doesn't plan to remove this extension any time soon.</div><font color="#888888"><div><br></div><div>-- Saurabh.</div><div><br></div><div><br></div></font></div></div>
</div></div>
</blockquote></div><br></div></div></div>