Resolving dependencies... Configuring FindBin-0.0.5... Configuring Win32-2.4.0.0... Building FindBin-0.0.5... Configuring clock-0.7.2... Failed to install Win32-2.4.0.0 Build log ( /home/builder/.cabal/logs/Win32-2.4.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-31384/Win32-2.4.0.0' Configuring Win32-2.4.0.0... cabal: Missing dependencies on foreign libraries: * Missing (or bad) header file: HsWin32.h * Missing C libraries: user32, gdi32, winmm, advapi32, shell32, shfolder, shlwapi This problem can usually be solved by installing the system packages that provide these libraries (you may need the "-dev" versions). If the libraries are already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are. If the header file does exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure with the verbosity flag -v3 to see the error messages. cabal: Leaving directory '/tmp/cabal-tmp-31384/Win32-2.4.0.0' Building clock-0.7.2... Configuring random-1.1... Installed FindBin-0.0.5 Building random-1.1... Configuring stm-2.4.4.1... Installed clock-0.7.2 Building stm-2.4.4.1... Configuring mtl-2.2.1... Installed random-1.1 Building mtl-2.2.1... Configuring text-1.2.2.1... Installed stm-2.4.4.1 Building text-1.2.2.1... Installed mtl-2.2.1 Configuring vect-0.4.7... Building vect-0.4.7... Installed text-1.2.2.1 Installed vect-0.4.7 Configuring HGamer3D-Data-0.5.0... Building HGamer3D-Data-0.5.0... Failed to install HGamer3D-Data-0.5.0 Build log ( /home/builder/.cabal/logs/HGamer3D-Data-0.5.0.log ): cabal: Entering directory '/tmp/cabal-tmp-31383/HGamer3D-Data-0.5.0' Configuring HGamer3D-Data-0.5.0... Building HGamer3D-Data-0.5.0... Preprocessing library HGamer3D-Data-0.5.0... [ 1 of 10] Compiling HGamer3D.Data.Window ( HGamer3D/Data/Window.hs, dist/build/HGamer3D/Data/Window.o ) [ 2 of 10] Compiling HGamer3D.Data.Vector ( HGamer3D/Data/Vector.hs, dist/build/HGamer3D/Data/Vector.o ) HGamer3D/Data/Vector.hs:27:1: warning: [-Wtabs] Tab character found here, and in one further location. Please use spaces instead. HGamer3D/Data/Vector.hs:38:9: warning: [-Wduplicate-exports] ‘zeroVec3’ is exported by ‘zeroVec3’ and ‘zeroVec3’ [ 3 of 10] Compiling HGamer3D.Data.TypeSynonyms ( HGamer3D/Data/TypeSynonyms.hs, dist/build/HGamer3D/Data/TypeSynonyms.o ) [ 4 of 10] Compiling HGamer3D.Data.HG3DClass ( HGamer3D/Data/HG3DClass.hs, dist/build/HGamer3D/Data/HG3DClass.o ) HGamer3D/Data/HG3DClass.hs:47:1: warning: [-Wtabs] Tab character found here, and in four further locations. Please use spaces instead. [ 5 of 10] Compiling HGamer3D.Data.Geometry2D ( HGamer3D/Data/Geometry2D.hs, dist/build/HGamer3D/Data/Geometry2D.o ) [ 6 of 10] Compiling HGamer3D.Data.GameTime ( HGamer3D/Data/GameTime.hs, dist/build/HGamer3D/Data/GameTime.o ) HGamer3D/Data/GameTime.hs:61:10: error: Duplicate instance declarations: instance Num GameTime -- Defined at HGamer3D/Data/GameTime.hs:61:10 instance [safe] Num C.TimeSpec -- Defined in ‘System.Clock’ cabal: Leaving directory '/tmp/cabal-tmp-31383/HGamer3D-Data-0.5.0' cabal: Error: some packages failed to install: HGamer3D-0.2.0 depends on Win32-2.4.0.0 which failed to install. HGamer3D-Bullet-Binding-0.2.0 depends on HGamer3D-Data-0.5.0 which failed to install. HGamer3D-CEGUI-Binding-0.2.0 depends on HGamer3D-Data-0.5.0 which failed to install. HGamer3D-Data-0.5.0 failed during the building phase. The exception was: ExitFailure 1 HGamer3D-Enet-Binding-0.2.0 depends on HGamer3D-Data-0.5.0 which failed to install. HGamer3D-Ogre-Binding-0.2.0 depends on HGamer3D-Data-0.5.0 which failed to install. HGamer3D-SFML-Binding-0.2.0 depends on HGamer3D-Data-0.5.0 which failed to install. Win32-2.4.0.0 failed during the configure step. The exception was: ExitFailure 1