*** setup configure Configuring LambdaINet-0.1.2... Dependency GLFW -any: using GLFW-0.4.1 Dependency OpenGL -any: using OpenGL-2.4.0.1 Dependency base >=3 && <5: using base-4.1.0.0 Dependency containers -any: using containers-0.2.0.1 Dependency mtl -any: using mtl-1.1.0.2 Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package OpenGL-2.3.0.0 requires GLURaw-1.0.0.0 package OpenGL-2.4.0.1 requires GLURaw-1.1.0.0 package GLFW-0.4.1 requires OpenGL-2.3.0.0 package LambdaINet-0.1.2 requires OpenGL-2.4.0.1 package OpenGL-2.3.0.0 requires OpenGLRaw-1.0.1.0 package GLURaw-1.0.0.0 requires OpenGLRaw-1.0.1.0 package OpenGL-2.4.0.1 requires OpenGLRaw-1.1.0.0 package GLURaw-1.1.0.0 requires OpenGLRaw-1.1.0.0 Using Cabal-1.7.3 compiled by ghc-6.10 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/LambdaINet-0.1.2/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/LambdaINet-0.1.2 Documentation installed in: /usr/local/tmp/archive/install/share/doc/LambdaINet-0.1.2 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.16.0 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.4 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg Using greencard found on system at: /usr/local/tmp/archive/install/bin/greencard Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No lhc found No lhc-pkg found No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar /usr/bin/gcc /tmp/15446.c -o /tmp/15446 -D__GLASGOW_HASKELL__=610 -I. -I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include -I/usr/local/lib/ghc-6.10.2/include -IPAPI_INCLUDE_DIR *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing executables for LambdaINet-0.1.2... Building LambdaINet-0.1.2... Building executable LambdaINet... Creating dist/build/LambdaINet (and its parents) Creating dist/build/LambdaINet/LambdaINet-tmp (and its parents) /usr/local/bin/ghc --make -o dist/build/LambdaINet/LambdaINet -hide-all-packages -package-conf dist/package.conf.inplace -i -idist/build/LambdaINet/LambdaINet-tmp -isrc -idist/build/autogen -Idist/build/autogen -Idist/build/LambdaINet/LambdaINet-tmp -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build/LambdaINet/LambdaINet-tmp -hidir dist/build/LambdaINet/LambdaINet-tmp -stubdir dist/build/LambdaINet/LambdaINet-tmp -package GLFW-0.4.1 -package OpenGL-2.4.0.1 -package base-4.1.0.0 -package containers-0.2.0.1 -package mtl-1.1.0.2 -O src/Main.lhs [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:201:21: Couldn't match expected type `OpenGL-2.3.0.0:Graphics.Rendering.OpenGL.GL.CoordTrans.Size' against inferred type `GL.Size' In the first argument of `GLFW.openWindow', namely `(GL.Size w h)' In a stmt of a 'do' expression: GLFW.openWindow (GL.Size w h) [GLFW.DisplayAlphaBits 8] GLFW.Window In the expression: do let row = realToFrac h / unit / 2 col = realToFrac w / unit / 2 writeIORef rowcolRef (row, col) GLFW.openWindow (GL.Size w h) [GLFW.DisplayAlphaBits 8] GLFW.Window GLFW.windowTitle $= "Diagram" .... src/Diagram.lhs:398:12: Couldn't match expected type `OpenGL-2.3.0.0:Graphics.Rendering.OpenGL.GL.CoordTrans.Position' against inferred type `GL.Position' In the pattern: GL.Position mx my In a stmt of a 'do' expression: GL.Position mx my <- GL.get GLFW.mousePos In the expression: do GL.Position mx my <- GL.get GLFW.mousePos (cx, cy, scale) <- readIORef factor (row, col) <- readIORef rowcolRef let (w, h) = ... atom = locateAtom (allAtoms d) posMap ((fromIntegral mx - w - cx) / scale / unit) ((h - fromIntegral my - cy) / scale / unit) .... src/Diagram.lhs:410:12: Couldn't match expected type `OpenGL-2.3.0.0:Graphics.Rendering.OpenGL.GL.CoordTrans.Position' against inferred type `GL.Position' In the pattern: GL.Position mx my In a stmt of a 'do' expression: GL.Position mx my <- GL.get GLFW.mousePos In the expression: do GL.Position mx my <- GL.get GLFW.mousePos t0 <- GL.get GLFW.time return (UserAction $ mouseZoom key (mx, my, mx, my, t0) d r, render) src/Diagram.lhs:415:12: Couldn't match expected type `OpenGL-2.3.0.0:Graphics.Rendering.OpenGL.GL.CoordTrans.Position' against inferred type `GL.Position' In the pattern: GL.Position mx my In a stmt of a 'do' expression: GL.Position mx my <- GL.get GLFW.mousePos In the expression: do GL.Position mx my <- GL.get GLFW.mousePos t0 <- GL.get GLFW.time return (UserAction $ mouseShift key (mx, my, mx, my, t0) d r, render) src/Diagram.lhs:446:8: Couldn't match expected type `OpenGL-2.3.0.0:Graphics.Rendering.OpenGL.GL.CoordTrans.Position' against inferred type `GL.Position' In the pattern: GL.Position mx' my' In a stmt of a 'do' expression: GL.Position mx' my' <- GL.get GLFW.mousePos In the expression: do status <- GLFW.getMouseButton but GL.Position mx' my' <- GL.get GLFW.mousePos (_, _, scale) <- readIORef factor let ax' = ax + truncate (realToFrac (mx' - mx) / scale / unit) ay' = ay + truncate (realToFrac (my - my') / scale / unit) .... .... src/Diagram.lhs:479:8: Couldn't match expected type `OpenGL-2.3.0.0:Graphics.Rendering.OpenGL.GL.CoordTrans.Position' against inferred type `GL.Position' In the pattern: GL.Position x y In a stmt of a 'do' expression: GL.Position x y <- GL.get GLFW.mousePos In the expression: do GL.Position x y <- GL.get GLFW.mousePos t1 <- GL.get GLFW.time let (mx', my') = ... dx = fromIntegral (x - mx') / realToFrac (t1 - t0) / 1000 .... return (dx, dy, (mx', my', x, y, t1)) src/Diagram.lhs:489:4: Couldn't match expected type `OpenGL-2.3.0.0:Graphics.Rendering.OpenGL.GL.CoordTrans.Size' against inferred type `GL.Size' In the pattern: GL.Size w h In a stmt of a 'do' expression: GL.Size w h <- GL.get GLFW.windowSize In the expression: do GL.Size w h <- GL.get GLFW.windowSize let (x0, y0, x1, y1) = gridBounds grid cx = unit * fromIntegral (x0 + x1) / 2 .... writeIORef factor (- cx / s, - cy / s, 1 / s) *** Trying again with preferred-versions *** setup configure Configuring LambdaINet-0.1.2... Dependency GLFW -any: using GLFW-0.4.1 Dependency OpenGL -any: using OpenGL-2.4.0.1 Dependency base ==3.*: using base-3.0.3.1 Dependency containers -any: using containers-0.2.0.1 Dependency mtl -any: using mtl-1.1.0.2 Warning: This package indirectly depends on multiple versions of the same package. This is highly likely to cause a compile failure. package OpenGL-2.3.0.0 requires GLURaw-1.0.0.0 package OpenGL-2.4.0.1 requires GLURaw-1.1.0.0 package GLFW-0.4.1 requires OpenGL-2.3.0.0 package LambdaINet-0.1.2 requires OpenGL-2.4.0.1 package OpenGL-2.3.0.0 requires OpenGLRaw-1.0.1.0 package GLURaw-1.0.0.0 requires OpenGLRaw-1.0.1.0 package OpenGL-2.4.0.1 requires OpenGLRaw-1.1.0.0 package GLURaw-1.1.0.0 requires OpenGLRaw-1.1.0.0 Using Cabal-1.7.3 compiled by ghc-6.10 Using compiler: ghc-6.10.2 Using install prefix: /usr/local/tmp/archive/install Binaries installed in: /usr/local/tmp/archive/install/bin Libraries installed in: /usr/local/tmp/archive/install/lib/LambdaINet-0.1.2/ghc-6.10.2 Private binaries installed in: /usr/local/tmp/archive/install/libexec Data files installed in: /usr/local/tmp/archive/install/share/LambdaINet-0.1.2 Documentation installed in: /usr/local/tmp/archive/install/share/doc/LambdaINet-0.1.2 Using alex version 2.2 found on system at: /usr/bin/alex Using ar found on system at: /usr/bin/ar Using c2hs version 0.16.0 found on system at: /usr/local/bin/c2hs Using cpphs version 0.7 found on system at: /usr/bin/cpphs Using ffihugs found on system at: /usr/local/bin/ffihugs Using gcc version 4.3.4 found on system at: /usr/bin/gcc Using ghc version 6.10.2 found on system at: /usr/local/bin/ghc Using ghc-pkg version 6.10.2 found on system at: /usr/local/bin/ghc-pkg Using greencard found on system at: /usr/local/tmp/archive/install/bin/greencard Using haddock version 2.4.2 found on system at: /usr/local/bin/haddock Using happy version 1.17 found on system at: /usr/local/bin/happy No hmake found Using hsc2hs version 0.67 found on system at: /usr/local/bin/hsc2hs Using hscolour version 1.9 found on system at: /usr/local/bin/HsColour Using hugs found on system at: /usr/local/bin/hugs No jhc found Using ld found on system at: /usr/bin/ld No lhc found No lhc-pkg found No nhc98 found Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config Using ranlib found on system at: /usr/bin/ranlib Using strip found on system at: /usr/bin/strip Using tar found on system at: /bin/tar /usr/bin/gcc /tmp/15583.c -o /tmp/15583 -D__GLASGOW_HASKELL__=610 -I. -I/usr/local/lib/ghc-6.10.2/base-4.1.0.0/include -I/usr/local/lib/ghc-6.10.2/include -IPAPI_INCLUDE_DIR *** setup build Creating dist/build (and its parents) Creating dist/build/autogen (and its parents) Preprocessing executables for LambdaINet-0.1.2... Building LambdaINet-0.1.2... Building executable LambdaINet... Creating dist/build/LambdaINet (and its parents) Creating dist/build/LambdaINet/LambdaINet-tmp (and its parents) /usr/local/bin/ghc --make -o dist/build/LambdaINet/LambdaINet -hide-all-packages -package-conf dist/package.conf.inplace -i -idist/build/LambdaINet/LambdaINet-tmp -isrc -idist/build/autogen -Idist/build/autogen -Idist/build/LambdaINet/LambdaINet-tmp -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build/LambdaINet/LambdaINet-tmp -hidir dist/build/LambdaINet/LambdaINet-tmp -stubdir dist/build/LambdaINet/LambdaINet-tmp -package GLFW-0.4.1 -package OpenGL-2.4.0.1 -package base-3.0.3.1 -package containers-0.2.0.1 -package mtl-1.1.0.2 -O src/Main.lhs [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:201:21: Couldn't match expected type `OpenGL-2.3.0.0:Graphics.Rendering.OpenGL.GL.CoordTrans.Size' against inferred type `GL.Size' In the first argument of `GLFW.openWindow', namely `(GL.Size w h)' In a stmt of a 'do' expression: GLFW.openWindow (GL.Size w h) [GLFW.DisplayAlphaBits 8] GLFW.Window In the expression: do let row = realToFrac h / unit / 2 col = realToFrac w / unit / 2 writeIORef rowcolRef (row, col) GLFW.openWindow (GL.Size w h) [GLFW.DisplayAlphaBits 8] GLFW.Window GLFW.windowTitle $= "Diagram" .... src/Diagram.lhs:398:12: Couldn't match expected type `OpenGL-2.3.0.0:Graphics.Rendering.OpenGL.GL.CoordTrans.Position' against inferred type `GL.Position' In the pattern: GL.Position mx my In a stmt of a 'do' expression: GL.Position mx my <- GL.get GLFW.mousePos In the expression: do GL.Position mx my <- GL.get GLFW.mousePos (cx, cy, scale) <- readIORef factor (row, col) <- readIORef rowcolRef let (w, h) = ... atom = locateAtom (allAtoms d) posMap ((fromIntegral mx - w - cx) / scale / unit) ((h - fromIntegral my - cy) / scale / unit) .... src/Diagram.lhs:410:12: Couldn't match expected type `OpenGL-2.3.0.0:Graphics.Rendering.OpenGL.GL.CoordTrans.Position' against inferred type `GL.Position' In the pattern: GL.Position mx my In a stmt of a 'do' expression: GL.Position mx my <- GL.get GLFW.mousePos In the expression: do GL.Position mx my <- GL.get GLFW.mousePos t0 <- GL.get GLFW.time return (UserAction $ mouseZoom key (mx, my, mx, my, t0) d r, render) src/Diagram.lhs:415:12: Couldn't match expected type `OpenGL-2.3.0.0:Graphics.Rendering.OpenGL.GL.CoordTrans.Position' against inferred type `GL.Position' In the pattern: GL.Position mx my In a stmt of a 'do' expression: GL.Position mx my <- GL.get GLFW.mousePos In the expression: do GL.Position mx my <- GL.get GLFW.mousePos t0 <- GL.get GLFW.time return (UserAction $ mouseShift key (mx, my, mx, my, t0) d r, render) src/Diagram.lhs:446:8: Couldn't match expected type `OpenGL-2.3.0.0:Graphics.Rendering.OpenGL.GL.CoordTrans.Position' against inferred type `GL.Position' In the pattern: GL.Position mx' my' In a stmt of a 'do' expression: GL.Position mx' my' <- GL.get GLFW.mousePos In the expression: do status <- GLFW.getMouseButton but GL.Position mx' my' <- GL.get GLFW.mousePos (_, _, scale) <- readIORef factor let ax' = ax + truncate (realToFrac (mx' - mx) / scale / unit) ay' = ay + truncate (realToFrac (my - my') / scale / unit) .... .... src/Diagram.lhs:479:8: Couldn't match expected type `OpenGL-2.3.0.0:Graphics.Rendering.OpenGL.GL.CoordTrans.Position' against inferred type `GL.Position' In the pattern: GL.Position x y In a stmt of a 'do' expression: GL.Position x y <- GL.get GLFW.mousePos In the expression: do GL.Position x y <- GL.get GLFW.mousePos t1 <- GL.get GLFW.time let (mx', my') = ... dx = fromIntegral (x - mx') / realToFrac (t1 - t0) / 1000 .... return (dx, dy, (mx', my', x, y, t1)) src/Diagram.lhs:489:4: Couldn't match expected type `OpenGL-2.3.0.0:Graphics.Rendering.OpenGL.GL.CoordTrans.Size' against inferred type `GL.Size' In the pattern: GL.Size w h In a stmt of a 'do' expression: GL.Size w h <- GL.get GLFW.windowSize In the expression: do GL.Size w h <- GL.get GLFW.windowSize let (x0, y0, x1, y1) = gridBounds grid cx = unit * fromIntegral (x0 + x1) / 2 .... writeIORef factor (- cx / s, - cy / s, 1 / s)