
I have published a new version (0.2.3) to Hackage that should fix this
build error.
On Thu, Nov 14, 2013 at 2:29 AM, Michael D. Adams
I am compiling with GHC 7.6.1 (Ubuntu), Base 4.6.0.0, Cabal 1.16, glib 0.12.4, poppler 0.12.2.2, gtk 0.12.4, cairo 0.12.4 (all from Hackage).
The Hackage version of glib, etc. do not work with Cabal 1.18 due it adding 'moreRecentFile' to the API. However, it does seem to work if you downgrade the Cabal package to 1.16. It is any easy fix to rename the function to avoid the conflict, so I'm not sure why the package maintainers for glib, etc. haven't already done that.
If you make the following change does hpdfp build with ghc/fedora (distro package) 7.4.2? (If so, I'll upload a new version of the package with the patch.)
--- a/HaskellPdfPresenter.hs Wed Nov 13 12:11:26 2013 -0600 +++ b/HaskellPdfPresenter.hs Thu Nov 14 02:22:57 2013 -0600 @@ -898,7 +898,7 @@
-- Load a new PDF document openDoc state uri = do - doc <- catch (documentNewFromFile uri Nothing) + doc <- Control.Exception.catch (documentNewFromFile uri Nothing) -- Explicit modules to avoid ambiguity in GHC 7.4 (\x -> errorDialog ("Error opening \"" ++ uri ++ "\": " ++ show (x :: GError)) >> return Nothing) case doc of Nothing -> errorDialog ("Unknown error opening \"" ++ uri ++ "\"") >> return True
On Wed, Nov 13, 2013 at 4:47 PM, Johannes Waldmann
wrote: ANNOUNCE: Haskell Pdf Presenter (hpdfp) 0.2.2
could you explain how you compile this? (what compiler, what version of base, etc.)
For me, it does not work with ghc-7.6.3 (binary package) because gtk2hs does not work hackage version (0.12.4) does not work because of /tmp/gtk-0.12.4-7461/gtk-0.12.4/SetupWrapper.hs:94:45: Ambiguous occurrence `moreRecentFile' and darcs version (0.12.4.1) breaks with Graphics/UI/Gtk/Printing/PrintOperation.chs:409:6: Couldn't match expected type `Ptr ()' with actual type `Window'
and it also does not work with ghc/fedora (distro package) 7.4.2 HaskellPdfPresenter.hs:901:10: Ambiguous occurrence `catch' It could refer to either `Prelude.catch', imported from `Prelude' at HaskellPdfPresenter.hs:1:1 (and originally defined in `System.IO.Error') or `Control.Exception.catch',
- J.W.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe