[Haskell-cafe] ANNOUNCE: Haddock version 2.8.0

Henk-Jan van Tuyl hjgtuyl at chello.nl
Thu Sep 2 15:22:09 EDT 2010


On Thu, 02 Sep 2010 14:00:56 +0200, David Waern <david.waern at gmail.com>  
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.


Regards,
Henk-Jan van Tuyl


-- 
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
--


More information about the Haskell-Cafe mailing list