Resolving dependencies... Configuring ObjectName-1.1.0.1... Configuring fixed-0.2.1.1... Building fixed-0.2.1.1... Building ObjectName-1.1.0.1... Installed ObjectName-1.1.0.1 Configuring half-0.2.2.3... Configuring stm-2.4.4.1... Installed fixed-0.2.1.1 Building half-0.2.2.3... Building stm-2.4.4.1... Configuring mtl-2.2.1... Installed half-0.2.2.3 Building mtl-2.2.1... Configuring text-1.2.2.1... Installed stm-2.4.4.1 Building text-1.2.2.1... Configuring StateVar-1.1.0.4... Installed mtl-2.2.1 Building StateVar-1.1.0.4... Installed StateVar-1.1.0.4 Installed text-1.2.2.1 Configuring OpenGLRaw-3.2.4.0... Building OpenGLRaw-3.2.4.0... Installed OpenGLRaw-3.2.4.0 Configuring GLURaw-2.0.0.3... Building GLURaw-2.0.0.3... Installed GLURaw-2.0.0.3 Configuring OpenGL-3.0.1.0... Building OpenGL-3.0.1.0... Installed OpenGL-3.0.1.0 Configuring GLFW-0.5.2.5... Building GLFW-0.5.2.5... Installed GLFW-0.5.2.5 Configuring LambdaINet-0.1.2.1... Building LambdaINet-0.1.2.1... Failed to install LambdaINet-0.1.2.1 Build log ( /home/builder/.cabal/logs/LambdaINet-0.1.2.1.log ): cabal: Entering directory '/tmp/cabal-tmp-9410/LambdaINet-0.1.2.1' Configuring LambdaINet-0.1.2.1... Building LambdaINet-0.1.2.1... Preprocessing executable 'LambdaINet' for LambdaINet-0.1.2.1... src/Main.lhs:3:16: warning: -XDoRec is deprecated: use -XRecursiveDo or pragma {-# LANGUAGE RecursiveDo #-} instead src/Lambda.lhs:3:16: warning: -XDoRec is deprecated: use -XRecursiveDo or pragma {-# LANGUAGE RecursiveDo #-} instead [1 of 5] Compiling Paths_LambdaINet ( dist/build/autogen/Paths_LambdaINet.hs, dist/build/LambdaINet/LambdaINet-tmp/Paths_LambdaINet.o ) [2 of 5] Compiling Diagram ( src/Diagram.lhs, dist/build/LambdaINet/LambdaINet-tmp/Diagram.o ) src/Diagram.lhs:112:5: error: Ambiguous occurrence ‘foldr’ It could refer to either ‘Prelude.foldr’, imported from ‘Prelude’ at src/Diagram.lhs:9:10-16 (and originally defined in ‘Data.Foldable’) or ‘IntMap.foldr’, imported from ‘Data.IntMap’ at src/Diagram.lhs:15:3-51 (and originally defined in ‘containers-0.5.7.1:Data.IntMap.Base’) src/Diagram.lhs:233:30: error: Ambiguous occurrence ‘foldr’ It could refer to either ‘Prelude.foldr’, imported from ‘Prelude’ at src/Diagram.lhs:9:10-16 (and originally defined in ‘Data.Foldable’) or ‘IntMap.foldr’, imported from ‘Data.IntMap’ at src/Diagram.lhs:15:3-51 (and originally defined in ‘containers-0.5.7.1:Data.IntMap.Base’) src/Diagram.lhs:245:30: error: Ambiguous occurrence ‘foldr’ It could refer to either ‘Prelude.foldr’, imported from ‘Prelude’ at src/Diagram.lhs:9:10-16 (and originally defined in ‘Data.Foldable’) or ‘IntMap.foldr’, imported from ‘Data.IntMap’ at src/Diagram.lhs:15:3-51 (and originally defined in ‘containers-0.5.7.1:Data.IntMap.Base’) cabal: Leaving directory '/tmp/cabal-tmp-9410/LambdaINet-0.1.2.1' cabal: Error: some packages failed to install: LambdaINet-0.1.2.1 failed during the building phase. The exception was: ExitFailure 1