Closed yihuang closed 13 years ago
It turns out this has nothing to do with xhtml package, after i mark base package as trusted, this problem disappears:
ghc-pkg trust base
I have been meaning to sort this out -- it’s a bug in 7.2.1 which I should have worked around by now.
Here is what I was told:
Yes sorry I should have warned you about this but forgot. We accidentally released 7.2.1 with a bug in that packages aren't trusted by default (so base isn't trusted). We are changing the behaviour in 7.4.1 so this won't be a problem any more.
For now I suggest you either keep the Safe Haskell patch only in the source repo and not in a released version of xhtml. OR try putting this in the .cabal file:
ghc-options: -trust base
Others have reported success with this.
Cheers,
Chris
-----Original Message----- From: yihuang [mailto:reply@reply.github.com] Sent: 06 October 2011 08:01 To: Chris Dornan Subject: [xhtml] build failed with ghc 7.2.1 (#1)
Error message:
Implicit import declaration: base:Prelude can't be safely imported! The package (base) the module resides in isn't trusted.
Reply to this email directly or view it on GitHub: https://github.com/haskell/xhtml/issues/1 https://github.com/haskell/xhtml/issues/1
This issue is fixed in ghc-7.2.2.
Yes it is indeed on 7.2.2 but Hackage is still reporting it as broken. This should be fixed with a new release to fix issue #2 -- as soon as I can get it done.
Thanks!
Chris
Error message:
Implicit import declaration: base:Prelude can't be safely imported! The package (base) the module resides in isn't trusted.