[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:
>        template-haskell-2.5.0.0-7d9b1443ac5ab69e5ed705a487990deb
>      (use -v for more information)
>
> When I run ghc-pkg check, I got which obviously is bad.
>
[...]
> There are problems in package QuickCheck-2.4.0.1:
>    dependency
> "template-haskell-2.5.0.0-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 
http://www.vex.net/~trebla/haskell/sicp.xhtml )



More information about the Haskell-Cafe mailing list