No offense :-) Thanks for taking the time to investigate this stuff. It gave me the opportunity to get a closer look at ghc package management.

Regards,
Arnaud

On Mon, Aug 29, 2011 at 5:28 PM, Albert Y. C. Lai <trebla@vex.net> wrote:
On 11-08-29 02:41 AM, Arnaud Bailly wrote:
ghc-pkg unregister --force --user template-haskell
[...]
ghc-pkg unregister --force --user template-haskell

I am sorry. I apologize. It was not your fault. It was my fault. "unregister --user" drops the global instance when there is no user instance, which is when the 2nd time you issued the command. It is a ghc-pkg bug.

(I already knew the dual bug: "unregister --global" drops the user instance when there is one. I make do with "unregister --global --no-user-package-conf".)


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe