2010/9/2 Henk-Jan van Tuyl <[email protected]>: > On Thu, 02 Sep 2010 14:00:56 +0200, David Waern <[email protected]> > wrote: > >> -------------------------------------------- >> -- Haddock 2.8.0 >> -------------------------------------------- >> >> A new version of Haddock, the Haskell documentation tool, is out! >> > > It doesn't install on Windows + MinGW: > >> cabal install --global haddock > > Resolving dependencies... > Downloading haddock-2.8.0... > : > : > [ 9 of 33] Compiling Haddock.Utils ( src\Haddock\Utils.hs, > dist\build\Haddock\Utils.o ) > > src\Haddock\Utils.hs:435:8: parse error on input `import' > cabal: Error: some packages failed to install: > haddock-2.8.0 failed during the building phase. The exception was: > ExitFailure 1 > > This concerns a line with a foreign import: > > #ifdef mingw32_HOST_OS > foreign import ccall unsafe "_getpid" getProcessID :: IO Int -- relies on > Int == Int32 on Windows > #else > getProcessID :: IO Int > getProcessID = fmap fromIntegral System.Posix.Internals.c_getpid > #endif > > > Adding the line: > {-# LANGUAGE ForeignFunctionInterface #-} > to the top of file src\Haddock\Utils.hs helped.
Thanks for catching this! I'll wait a little while in case other issues are reported before I upload 2.8.1. David _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
