[Haskell-cafe] Dynamic loading of module
Albert Y. C. Lai
trebla at vex.net
Fri Aug 26 23:36:10 CEST 2011
On 11-08-26 04:51 AM, Arnaud Bailly wrote:
> D:\projets\>ghc -package ghc main.hs --make
> <command line>: cannot satisfy -package ghc:
> ghc-7.0.3-fc75cf67c86ba2c0d64b07024a18d3b4 is unusable due to
> missing or recursive dependencies:
> (use -v for more information)
> When I run ghc-pkg check, I got which obviously is bad.
> There are problems in package QuickCheck-18.104.22.168:
> "template-haskell-22.214.171.124-e5fd973432385747440288b48f6a6a5a" doesn't exist
For a 100%-accurate answer, one would need the full history of what you
did to your computer, which no one knows.
For a 99%-accurate answer, the outputs of "ghc -v" and "ghc-pkg list -v"
are very good post-mortem information.
A 90%-accurate answer: Given the incomplete information (that's right,
"ghc-pkg check" is incomplete), there is 90% probability that you lost
template-haskell, and you must reinstall haskell platform. (No, building
a new instance of template-haskell is not enough. Generally, replacing
or overriding libs that come with GHC does not work. See my
More information about the Haskell-Cafe