Anyway, I will reinstall Haskell platform and read carefully your post to be sure I do not screwed my setup again in the future.<br><br>Best regards,<br>Arnaud<br><br><div class="gmail_quote">On Mon, Aug 29, 2011 at 8:41 AM, Arnaud Bailly <span dir="ltr">&lt;<a href="mailto:arnaud.oqube@gmail.com">arnaud.oqube@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks again for your patience and efforts. I am pretty sure I did not remove anything from the global package scope, at least intentionally. But of course I may have done things whcih you did not recommend. Here is the command-line history:<br>

<br>ghc-pgk unregister --user template-haskell<div class="im"><br>ghc-pkg unregister --user template-haskell<br></div>ghc-pkg unregister --force --user template-haskell<br>ghc-pkg unregister --force --user quickcheck<br>
ghc-pkg unregister --force --user QuickCheck<br>
ghc-pkg unregister --force --user template-haskell<br>cd C:\Documents and Settings\abailly\Application Data\ghc\i386-mingw32-7.0.3\<br>dir<br>c:<br>dir<br>cd package.conf.d<br>dir<br>cd ..<br>rm -fr package.conf.d<br>d:<br>

ghc-pkg check<br>ghc-pkg update<br>ghc-pkg recache<br><br>Regards,<br><font color="#888888">Arnaud</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Aug 29, 2011 at 4:03 AM, Albert Y. C. Lai <span dir="ltr">&lt;<a href="mailto:trebla@vex.net" target="_blank">trebla@vex.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>On 11-08-28 04:40 PM, Arnaud Bailly wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
Hello Albert,<br>
Thanks for taking the time to help me fix this package stuff. So I wiped<br>
out my package.conf.d/ and tried to reinstall my stuff. Installing<br>
template-haskell 2.5.0.0 is ok (2.6 is not, fails to compile on ghc<br>
7.0.3) but then:<br>
<br>
D:\projets\&gt;ghc --make -package ghc main<br>
&lt;command line&gt;: cannot satisfy -package ghc<br>
     (use -v for more information)<br>
<br>
I suspect I really *do* have to reinstall haskell-platform. Here is the<br>
output of ghc-pkg list -v:<br>
<br>
using cache: C:\Documents and Settings\abailly\Application<br>
Data\ghc\i386-mingw32-7.0.3\<u></u>package.conf.d\package.cache<br>
using cache: D:/Program Files/Haskell<br>
Platform/2011.2.0.1\lib\<u></u>package.conf.d\package.cache<br>
D:/Program Files/Haskell Platform/2011.2.0.1\lib\<u></u>package.conf.d:<br>
     Cabal-1.10.1.0 (Cabal-1.10.1.0-<u></u>55f781465ee9f32289755ad706c71f<u></u>0f)<br>
     GLUT-2.1.2.1 (GLUT-2.1.2.1-<u></u>2d30997b9a19d27be388572e75af52<u></u>bf)<br>
     HTTP-4000.1.1 (HTTP-4000.1.1-<u></u>267a332938fa742ba5a5d59de0b46d<u></u>60)<br>
     HUnit-1.2.2.3 (HUnit-1.2.2.3-<u></u>102fbfbd594cd6d38461f5c68d8809<u></u>96)<br>
     OpenGL-2.2.3.0 (OpenGL-2.2.3.0-<u></u>a58ce3ad6070e6b7932a3e779be57f<u></u>75)<br>
     Win32-2.2.0.1 (Win32-2.2.0.1-<u></u>26cf39fdf591bdac61b11d5a443c62<u></u>ab)<br>
     array-0.3.0.2 (array-0.3.0.2-<u></u>8e9cd0144e87fa9cc86cc9031631c4<u></u>f3)<br>
     base-4.3.1.0 (base-4.3.1.0-<u></u>f520cd232cc386346843c4a12b63f4<u></u>4b)<br>
     bin-package-db-0.0.0.0<br>
(bin-package-db-0.0.0.0-<u></u>97d865e5935b41538bcb29fc1040ae<u></u>7d)<br>
     bytestring-0.9.1.10<br>
(bytestring-0.9.1.10-<u></u>cd85f14e02463c02ba4c77d7adcdb5<u></u>4f)<br>
     cgi-3001.1.7.4 (cgi-3001.1.7.4-<u></u>659440ce11c2975fd9c9c471a1e8ff<u></u>3b)<br>
     containers-0.4.0.0<br>
(containers-0.4.0.0-<u></u>18deac99a132f04751d862b77aab13<u></u>6e)<br>
     deepseq-1.1.0.2 (deepseq-1.1.0.2-<u></u>09b3aed0c4982bbc6569c668100876<u></u>fa)<br>
     directory-1.1.0.0 (directory-1.1.0.0-<u></u>3a2367d72569467a8af8a231656ff1<u></u>b8)<br>
     extensible-exceptions-0.1.1.2<br>
(extensible-exceptions-0.1.1.<u></u>2-<u></u>d8c5b906654260efd7249f497d17a8<u></u>31)<br>
     ffi-1.0 (builtin_ffi)<br>
     fgl-5.4.2.3 (fgl-5.4.2.3-<u></u>595811d6eabb1e1768685703ea66e9<u></u>82)<br>
     filepath-1.2.0.0 (filepath-1.2.0.0-<u></u>f132e9f7703da4e20a47ff2b9acf1e<u></u>a1)<br>
     (ghc-binary-0.5.0.2<br>
(ghc-binary-0.5.0.2-<u></u>aba2b5dca5546ea1a972188de48f87<u></u>b5))<br>
     ghc-prim-0.2.0.0 (ghc-prim-0.2.0.0-<u></u>e1f7c380581d61d42b0360d440cc35<u></u>ed)<br>
     haskell-src-1.0.1.4<br>
(haskell-src-1.0.1.4-<u></u>7428a8c9049cd6bf5abdc0bbd2d417<u></u>c5)<br>
     (haskell2010-1.0.0.0<br>
(haskell2010-1.0.0.0-<u></u>53d9cd65595c551eea0c0269f534b5<u></u>e0))<br>
     haskell98-1.1.0.1 (haskell98-1.1.0.1-<u></u>35ec26bae828637c1638c8be441b3d<u></u>68)<br>
     hpc-0.5.0.6 (hpc-0.5.0.6-<u></u>481dbb43fb624c21ad3bb9434675e3<u></u>ac)<br>
     html-1.0.1.2 (html-1.0.1.2-<u></u>a494249f98a0f38b1a8db28bc70f8b<u></u>0b)<br>
     integer-gmp-0.2.0.3<br>
(integer-gmp-0.2.0.3-<u></u>91607778cf3ae8f3948a50062b4f84<u></u>79)<br>
     mtl-2.0.1.0 (mtl-2.0.1.0-<u></u>fb4d1695269b74308c1517c06b76e6<u></u>e8)<br>
     network-2.3.0.2 (network-2.3.0.2-<u></u>47657e39a6118a978d9f443d72e85d<u></u>4a)<br>
     old-locale-1.0.0.2<br>
(old-locale-1.0.0.2-<u></u>6e2a3c0744e8cf4e0ac2d4e58659f7<u></u>b5)<br>
     old-time-1.0.0.6 (old-time-1.0.0.6-<u></u>445ce39cbcebd38069c25c0f383b72<u></u>8d)<br>
     parallel-3.1.0.1 (parallel-3.1.0.1-<u></u>6eaa564e1ef1537bc88ad1fea6c90f<u></u>e2)<br>
     parsec-3.1.1 (parsec-3.1.1-<u></u>9da59b00c02e52f9f62f3c87c7e0e2<u></u>ec)<br>
     pretty-1.0.1.2 (pretty-1.0.1.2-<u></u>abc7c632374e50e1c1927987c2651f<u></u>0f)<br>
     process-1.0.1.5 (process-1.0.1.5-<u></u>b3dded8e54a2e13d22af410bdcfaff<u></u>f4)<br>
     random-1.0.0.3 (random-1.0.0.3-<u></u>1abde37180be5476311abeefe300ab<u></u>c2)<br>
     regex-base-0.93.2 (regex-base-0.93.2-<u></u>9e1b027c41dbec856469a30982495b<u></u>b9)<br>
     regex-compat-0.93.1<br>
(regex-compat-0.93.1-<u></u>31c61fe0aee45e8a9853edf7a844f7<u></u>4e)<br>
     regex-posix-0.94.4<br>
(regex-posix-0.94.4-<u></u>f5eb628ea5dae5f91552d5ea0e2635<u></u>9d)<br>
     rts-1.0 (builtin_rts)<br>
     stm-2.2.0.1 (stm-2.2.0.1-<u></u>57e291244ee02349552a4f79caeb4f<u></u>fe)<br>
     syb-0.3 (syb-0.3-<u></u>8db7bc4339a1cb8a6f2a46c40447ef<u></u>0b)<br>
     text-0.11.0.6 (text-0.11.0.6-<u></u>398a3f02891247aea46662fc7379c4<u></u>a5)<br>
     time-1.2.0.3 (time-1.2.0.3-<u></u>74ef6ac31cee9aec02b036978af002<u></u>d2)<br>
     transformers-0.2.2.0<br>
(transformers-0.2.2.0-<u></u>2fe7b735c63a6cbe8724038d8e4d81<u></u>2a)<br>
     xhtml-3000.2.0.1 (xhtml-3000.2.0.1-<u></u>ace31b2e48c396e565655b0f34f5d2<u></u>b7)<br>
     zlib-0.5.3.1 (zlib-0.5.3.1-<u></u>5fbdf714525b76e0e601c2ffb25f20<u></u>44)<br>
<br>
C:\Documents and Settings\abailly\Application<br>
Data\ghc\i386-mingw32-7.0.3\<u></u>package.conf.d:<br>
     QuickCheck-2.4.1.1<br>
(QuickCheck-2.4.1.1-<u></u>04d68679694a517ba23022a4c6bc1c<u></u>de)<br>
     ghc-paths-0.1.0.8 (ghc-paths-0.1.0.8-<u></u>be391faf057d651dbb92b73671fe9e<u></u>ee)<br>
     template-haskell-2.5.0.0<br>
(template-haskell-2.5.0.0-<u></u>87f4f416a22a910e480ac9f269479a<u></u>5f)<br>
     utf8-string-0.3.7 (utf8-string-0.3.7-<u></u>dcbcb8de655cdfe1c4c28c094f8c67<u></u>99)<br>
<br>
Thanks again,<br>
Arnaud<br>
<br>
On Sat, Aug 27, 2011 at 8:59 PM, Albert Y. C. Lai &lt;<a href="mailto:trebla@vex.net" target="_blank">trebla@vex.net</a><br></div></div><div>
&lt;mailto:<a href="mailto:trebla@vex.net" target="_blank">trebla@vex.net</a>&gt;&gt; wrote:<br>
<br>
    You have too many instances of template-haskell. The important parts<br>
    are:<br>
<br>
<br></div>
    package ghc-7.0.3-__<u></u>fc75cf67c86ba2c0d64b07024a18d3<u></u>__b4 is unusable<div><br>
    due to missing or recursive dependencies:<br></div>
      template-haskell-2.5.0.0-__<u></u>7d9b1443ac5ab69e5ed705a487990d<u></u>__eb<br>
<br>
    package<br>
    template-haskell-2.5.0.0-__<u></u>7d9b1443ac5ab69e5ed705a487990d<u></u>__eb is<br>
    shadowed by package<br>
    template-haskell-2.5.0.0-__<u></u>87f4f416a22a910e480ac9f269479a<u></u>__5f<div><br>
<br>
    and in &quot;ghc-pkg list -v&quot;:<br>
<br>
    D:/Program Files/Haskell Platform/2011.2.0.1\lib\__<u></u>package.conf.d:<br>
<br>
<br>
       template-haskell-2.5.0.0<br></div>
    (template-haskell-2.5.0.0-__<u></u>7d9b1443ac5ab69e5ed705a487990d<u></u>__eb)<div><br>
<br>
    C:\Documents and Settings\abailly\Application<br>
    Data\ghc\i386-mingw32-7.0.3\__<u></u>package.conf.d:<br>
<br>
<br>
        template-haskell-2.5.0.0<br></div>
    (template-haskell-2.5.0.0-__<u></u>87f4f416a22a910e480ac9f269479a<u></u>__5f)<div><br>
<br>
    I don&#39;t know how you got to this unsafe state. But my article<br>
    explains what&#39;s wrong with it. (Though my example has different<br>
    version numbers on top of different ABI hashes).<br>
<br>
    The user instance of template-haskell<br></div>
    (__<u></u>87f4f416a22a910e480ac9f269479a<u></u>__5f) is getting into the way. Lose<div><br>
    it by doing &quot;ghc-pkg unregister --user template-haskell&quot; on it. Oh,<br>
    it will complain about breaking other packages; well, lose them too.<br>
<br>
    (Or go one step further and lose all of C:\Documents and<br>
    Settings\abailly\Application<br>
    Data\ghc\i386-mingw32-7.0.3\__<u></u>package.conf.d which means losing all<br>
    user packages.)<br>
<br>
    (Reinstalling haskell platform changes nothing, as long as some user<br>
    package gets into the way.)<br>
</div></blockquote>
<br>
I do not understand why you had template-haskell in global and now you don&#39;t, i.e., last time you still had<div><br>
<br>
D:/Program Files/Haskell Platform/2011.2.0.1\lib\<u></u>package.conf.d:<br>
[...]<br>
   template-haskell-2.5.0.0 (template-haskell-2.5.0.0-<u></u>7d9b1443ac5ab69e5ed705a487990d<u></u>eb)<br>
<br></div>
and now you don&#39;t have it.<br>
<br>
I clearly did not suggest getting rid of it.<br>
<br>
I only suggested getting rid of the user instance &quot;ghc-pkg unregister --user template-haskell&quot; and/or getting rid of &quot;C:\Documents and Settings\abailly\Application Data\ghc\i386-mingw32-7.0.3\<u></u>package.conf.d&quot; which are all just user instances, wouldn&#39;t lose global instances.<br>


<br>
I do not understand why you are so keen on replacing what comes with GHC and/or Haskell Platform. I have said several times that such replacements cause troubles.<br>
<br>
I give up. I am replying because I want to record that my suggestion would not lead to an important part of the current state.<div><div></div><div><br>
<br>
______________________________<u></u>_________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>