Hello,<br>I stumbled upon this blog post describing a method from dynamically loading modules using GHC api. <br><br>While trying to test the given method, I got the following error which obviously tells me my packages are not correctly installed but I have no idea how to fix this. <br>
<br>D:\projets\&gt;ghc -package ghc main.hs --make<br>&lt;command line&gt;: cannot satisfy -package ghc:<br>    ghc-7.0.3-fc75cf67c86ba2c0d64b07024a18d3b4 is unusable due to missing or recursive dependencies:<br>      template-haskell-2.5.0.0-7d9b1443ac5ab69e5ed705a487990deb<br>
    (use -v for more information)<br><br>When I run ghc-pkg check, I got which obviously is bad. <br><br>There are problems in package test-framework-0.3.3:<br>  dependency &quot;regex-posix-0.94.4-7963833a181f95ba404a78e3e76d835a&quot; doesn&#39;t exist<br>
There are problems in package QuickCheck-2.4.0.1:<br>  dependency &quot;template-haskell-2.5.0.0-e5fd973432385747440288b48f6a6a5a&quot; doesn&#39;t exist<br>There are problems in package snap-0.5.1:<br>  dependency &quot;attoparsec-0.8.6.1-3d4c24cfa94f97cbeb7d6cf43ef70284&quot; doesn&#39;t exist<br>
  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>  dependency &quot;cereal-0.3.3.0-81dac2655ecff64c5fc69671490df093&quot; doesn&#39;t exist<br>  dependency &quot;enumerator-0.4.10-d65a90206db2a5203c1c906e6f58a6c9&quot; doesn&#39;t exist<br>
There are problems in package snap-server-0.5.1:<br>  dependency &quot;attoparsec-0.8.6.1-3d4c24cfa94f97cbeb7d6cf43ef70284&quot; doesn&#39;t exist<br>  dependency &quot;attoparsec-enumerator-0.2.0.3-d5a7e5b640b4b27be4c6d0c9a314dd0a&quot; doesn&#39;t exist<br>
  dependency &quot;binary-0.5.0.2-72c84eaab351d41e936261d8d5d416f5&quot; doesn&#39;t exist<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>  dependency &quot;case-insensitive-0.2.0.1-6cb260512f91ae60284372c0208aa00e&quot; doesn&#39;t exist<br>
  dependency &quot;enumerator-0.4.10-d65a90206db2a5203c1c906e6f58a6c9&quot; doesn&#39;t exist<br>There are problems in package snap-core-0.5.1:<br>  dependency &quot;attoparsec-0.8.6.1-3d4c24cfa94f97cbeb7d6cf43ef70284&quot; doesn&#39;t exist<br>
  dependency &quot;attoparsec-enumerator-0.2.0.3-d5a7e5b640b4b27be4c6d0c9a314dd0a&quot; doesn&#39;t exist<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>  dependency &quot;case-insensitive-0.2.0.1-6cb260512f91ae60284372c0208aa00e&quot; doesn&#39;t exist<br>
  dependency &quot;enumerator-0.4.10-d65a90206db2a5203c1c906e6f58a6c9&quot; doesn&#39;t exist<br>There are problems in package heist-0.5.2:<br>  dependency &quot;attoparsec-0.8.6.1-3d4c24cfa94f97cbeb7d6cf43ef70284&quot; doesn&#39;t exist<br>
  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>There are problems in package xmlhtml-0.1.5:<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>
There are problems in package authenticate-0.9.0.1:<br>  dependency &quot;attoparsec-0.8.6.1-3d4c24cfa94f97cbeb7d6cf43ef70284&quot; doesn&#39;t exist<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>
  dependency &quot;case-insensitive-0.2.0.1-6cb260512f91ae60284372c0208aa00e&quot; doesn&#39;t exist<br>  dependency &quot;enumerator-0.4.10-d65a90206db2a5203c1c906e6f58a6c9&quot; doesn&#39;t exist<br>There are problems in package http-enumerator-0.6.5.1:<br>
  dependency &quot;attoparsec-0.8.6.1-3d4c24cfa94f97cbeb7d6cf43ef70284&quot; doesn&#39;t exist<br>  dependency &quot;attoparsec-enumerator-0.2.0.3-d5a7e5b640b4b27be4c6d0c9a314dd0a&quot; doesn&#39;t exist<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>
  dependency &quot;case-insensitive-0.2.0.1-6cb260512f91ae60284372c0208aa00e&quot; doesn&#39;t exist<br>  dependency &quot;enumerator-0.4.10-d65a90206db2a5203c1c906e6f58a6c9&quot; doesn&#39;t exist<br>There are problems in package zlib-enum-0.2.1:<br>
  dependency &quot;enumerator-0.4.10-d65a90206db2a5203c1c906e6f58a6c9&quot; doesn&#39;t exist<br>There are problems in package yesod-static-0.1.0:<br>  dependency &quot;cereal-0.3.3.0-81dac2655ecff64c5fc69671490df093&quot; doesn&#39;t exist<br>
  dependency &quot;pureMD5-2.1.0.3-cb7a7a936930b56c62f9207838b99efb&quot; doesn&#39;t exist<br>There are problems in package yesod-form-0.1.0.1:<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>
  dependency &quot;data-default-0.2.0.1-14197e607852c0357951d749c098bd34&quot; doesn&#39;t exist<br>There are problems in package yesod-core-0.8.2:<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>
  dependency &quot;case-insensitive-0.2.0.1-6cb260512f91ae60284372c0208aa00e&quot; doesn&#39;t exist<br>  dependency &quot;cereal-0.3.3.0-81dac2655ecff64c5fc69671490df093&quot; doesn&#39;t exist<br>  dependency &quot;enumerator-0.4.10-d65a90206db2a5203c1c906e6f58a6c9&quot; doesn&#39;t exist<br>
There are problems in package warp-0.4.0.1:<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>  dependency &quot;case-insensitive-0.2.0.1-6cb260512f91ae60284372c0208aa00e&quot; doesn&#39;t exist<br>
  dependency &quot;enumerator-0.4.10-d65a90206db2a5203c1c906e6f58a6c9&quot; doesn&#39;t exist<br>There are problems in package wai-extra-0.4.0.1:<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>
  dependency &quot;case-insensitive-0.2.0.1-6cb260512f91ae60284372c0208aa00e&quot; doesn&#39;t exist<br>  dependency &quot;enumerator-0.4.10-d65a90206db2a5203c1c906e6f58a6c9&quot; doesn&#39;t exist<br>There are problems in package wai-app-static-0.1.0:<br>
  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>There are problems in package wai-0.4.0:<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>
  dependency &quot;enumerator-0.4.10-d65a90206db2a5203c1c906e6f58a6c9&quot; doesn&#39;t exist<br>There are problems in package hjsmin-0.0.14:<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>
There are problems in package aeson-0.3.2.6:<br>  dependency &quot;attoparsec-0.8.6.1-3d4c24cfa94f97cbeb7d6cf43ef70284&quot; doesn&#39;t exist<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>
There are problems in package tls-extra-0.2.3:<br>  dependency &quot;crypto-api-0.6.1-6854b68ffc32d8880becebcf8b612932&quot; doesn&#39;t exist<br>There are problems in package tls-0.6.4:<br>  dependency &quot;cereal-0.3.3.0-81dac2655ecff64c5fc69671490df093&quot; doesn&#39;t exist<br>
  dependency &quot;crypto-api-0.6.1-6854b68ffc32d8880becebcf8b612932&quot; doesn&#39;t exist<br>There are problems in package cprng-aes-0.2.1:<br>  dependency &quot;cereal-0.3.3.0-81dac2655ecff64c5fc69671490df093&quot; doesn&#39;t exist<br>
  dependency &quot;crypto-api-0.6.1-6854b68ffc32d8880becebcf8b612932&quot; doesn&#39;t exist<br>There are problems in package cryptocipher-0.2.12:<br>  dependency &quot;cereal-0.3.3.0-81dac2655ecff64c5fc69671490df093&quot; doesn&#39;t exist<br>
  dependency &quot;crypto-api-0.6.1-6854b68ffc32d8880becebcf8b612932&quot; doesn&#39;t exist<br>  dependency &quot;tagged-0.2.2-74797b2dae44925f852c0beab1f9f3e6&quot; doesn&#39;t exist<br>There are problems in package blaze-textual-0.1.0.0:<br>
  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>There are problems in package SHA-1.4.1.3:<br>  dependency &quot;binary-0.5.0.2-72c84eaab351d41e936261d8d5d416f5&quot; doesn&#39;t exist<br>
There are problems in package RSA-1.0.6.1:<br>  dependency &quot;binary-0.5.0.2-72c84eaab351d41e936261d8d5d416f5&quot; doesn&#39;t exist<br>  dependency &quot;pureMD5-2.1.0.3-cb7a7a936930b56c62f9207838b99efb&quot; doesn&#39;t exist<br>
There are problems in package persistent-0.5.0:<br>  dependency &quot;enumerator-0.4.10-d65a90206db2a5203c1c906e6f58a6c9&quot; doesn&#39;t exist<br>There are problems in package mime-mail-0.3.0:<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>
There are problems in package hxt-9.1.1:<br>  dependency &quot;binary-0.5.0.2-72c84eaab351d41e936261d8d5d416f5&quot; doesn&#39;t exist<br>There are problems in package http-types-0.6.4:<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>
  dependency &quot;case-insensitive-0.2.0.1-6cb260512f91ae60284372c0208aa00e&quot; doesn&#39;t exist<br>There are problems in package hamlet-0.8.2:<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>
There are problems in package cryptohash-0.7.0:<br>  dependency &quot;cereal-0.3.3.0-81dac2655ecff64c5fc69671490df093&quot; doesn&#39;t exist<br>  dependency &quot;crypto-api-0.6.1-6854b68ffc32d8880becebcf8b612932&quot; doesn&#39;t exist<br>
  dependency &quot;tagged-0.2.2-74797b2dae44925f852c0beab1f9f3e6&quot; doesn&#39;t exist<br>There are problems in package cookie-0.2.1:<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>
There are problems in package blaze-html-0.4.1.1:<br>  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>There are problems in package blaze-builder-enumerator-0.2.0.2:<br>
  dependency &quot;blaze-builder-0.3.0.1-157e8a92bc5ef27895f938613ecfdcb1&quot; doesn&#39;t exist<br>  dependency &quot;enumerator-0.4.10-d65a90206db2a5203c1c906e6f58a6c9&quot; doesn&#39;t exist<br>There are problems in package attoparsec-text-0.8.5.0:<br>
  dependency &quot;attoparsec-0.8.6.1-3d4c24cfa94f97cbeb7d6cf43ef70284&quot; doesn&#39;t exist<br>There are problems in package asn1-data-0.5.0:<br>  dependency &quot;attoparsec-0.8.6.1-3d4c24cfa94f97cbeb7d6cf43ef70284&quot; doesn&#39;t exist<br>
  dependency &quot;attoparsec-enumerator-0.2.0.3-d5a7e5b640b4b27be4c6d0c9a314dd0a&quot; doesn&#39;t exist<br>  dependency &quot;enumerator-0.4.10-d65a90206db2a5203c1c906e6f58a6c9&quot; doesn&#39;t exist<br><br>The following packages are broken, either because they have a problem<br>
listed above, or because they depend on a broken package.<br>test-framework-0.3.3<br>QuickCheck-2.4.0.1<br>snap-0.5.1<br>snap-server-0.5.1<br>snap-core-0.5.1<br>heist-0.5.2<br>xmlhtml-0.1.5<br>authenticate-0.9.0.1<br>http-enumerator-0.6.5.1<br>
zlib-enum-0.2.1<br>yesod-static-0.1.0<br>yesod-form-0.1.0.1<br>yesod-core-0.8.2<br>warp-0.4.0.1<br>wai-extra-0.4.0.1<br>wai-app-static-0.1.0<br>wai-0.4.0<br>hjsmin-0.0.14<br>aeson-0.3.2.6<br>tls-extra-0.2.3<br>tls-0.6.4<br>
cprng-aes-0.2.1<br>cryptocipher-0.2.12<br>blaze-textual-0.1.0.0<br>SHA-1.4.1.3<br>RSA-1.0.6.1<br>persistent-0.5.0<br>mime-mail-0.3.0<br>hxt-9.1.1<br>http-types-0.6.4<br>hamlet-0.8.2<br>cryptohash-0.7.0<br>cookie-0.2.1<br>
blaze-html-0.4.1.1<br>blaze-builder-enumerator-0.2.0.2<br>attoparsec-text-0.8.5.0<br>asn1-data-0.5.0<br>test-framework-quickcheck2-0.2.10<br>test-framework-hunit-0.2.6<br>yesod-persistent-0.1.0<br>yesod-json-0.1.1<br>persistent-template-0.5.0.1<br>
certificate-0.9.0.1<br>haskell-platform-2011.2.0.1<br><br><br>Is there anything I can do to fix this without wiping out and reinstalling haskell platform ?<br><br>THanks in advance<br>Arnaud<br>