Build #8 for SGdemo-1.0

[all reports]

Package SGdemo-1.0
Install DependencyFailed SG-1.0
Docs NotTried
Tests NotTried
Time submitted 2017-01-02 04:45:02.530489 UTC
Compiler ghc-8.0.1.20161018
OS linux
Arch x86_64
Dependencies GLUT-2.7.0.10, OpenGL-3.0.1.0, SG-1.0, base-4.9.0.0
Flags none

Code Coverage

No Code Coverage was submitted for this report.

Build log

[view raw]

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...
Configuring SG-1.0...
Installed StateVar-1.1.0.4
Building SG-1.0...
Failed to install SG-1.0
Build log ( /home/builder/.cabal/logs/SG-1.0.log ):
cabal: Entering directory '/tmp/cabal-tmp-12272/SG-1.0'
Configuring SG-1.0...
Building SG-1.0...
Preprocessing library SG-1.0...
[1 of 8] Compiling Data.SG.Vector   ( Data/SG/Vector.hs, dist/build/Data/SG/Vector.o )
[2 of 8] Compiling Data.SG.Vector.Basic ( Data/SG/Vector/Basic.hs, dist/build/Data/SG/Vector/Basic.o )

Data/SG/Vector/Basic.hs:50:1: warning: [-Wunused-imports]
    The import of ‘Data.Foldable’ is redundant
      except perhaps to import instances from ‘Data.Foldable’
    To import instances alone, use: import Data.Foldable()
[3 of 8] Compiling Data.SG.Matrix   ( Data/SG/Matrix.hs, dist/build/Data/SG/Matrix.o )
[4 of 8] Compiling Data.SG.Geometry ( Data/SG/Geometry.hs, dist/build/Data/SG/Geometry.o )

Data/SG/Geometry.hs:64:13: error:
    • Could not deduce (Show a) arising from a use of ‘+’
      from the context: Num a
        bound by the type signature for:
                   plusDir :: Num a => Pair a -> Pair a -> Pair a
        at Data/SG/Geometry.hs:64:3-9
      Possible fix:
        add (Show a) to the context of
          the type signature for:
            plusDir :: Num a => Pair a -> Pair a -> Pair a
    • In the expression: (+)
      In an equation for ‘plusDir’: plusDir = (+)
      In the instance declaration for ‘Geometry Pair Pair LinePair’

Data/SG/Geometry.hs:65:12: error:
    • Could not deduce (Show a) arising from a use of ‘-’
      from the context: Num a
        bound by the type signature for:
                   fromPt :: Num a => Pair a -> Pair a -> Pair a
        at Data/SG/Geometry.hs:65:3-8
      Possible fix:
        add (Show a) to the context of
          the type signature for:
            fromPt :: Num a => Pair a -> Pair a -> Pair a
    • In the expression: (-)
      In an equation for ‘fromPt’: fromPt = (-)
      In the instance declaration for ‘Geometry Pair Pair LinePair’

Data/SG/Geometry.hs:70:13: error:
    • Could not deduce (Show a) arising from a use of ‘+’
      from the context: Num a
        bound by the type signature for:
                   plusDir :: Num a => Triple a -> Triple a -> Triple a
        at Data/SG/Geometry.hs:70:3-9
      Possible fix:
        add (Show a) to the context of
          the type signature for:
            plusDir :: Num a => Triple a -> Triple a -> Triple a
    • In the expression: (+)
      In an equation for ‘plusDir’: plusDir = (+)
      In the instance declaration for ‘Geometry Triple Triple LineTriple’

Data/SG/Geometry.hs:71:12: error:
    • Could not deduce (Show a) arising from a use of ‘-’
      from the context: Num a
        bound by the type signature for:
                   fromPt :: Num a => Triple a -> Triple a -> Triple a
        at Data/SG/Geometry.hs:71:3-8
      Possible fix:
        add (Show a) to the context of
          the type signature for:
            fromPt :: Num a => Triple a -> Triple a -> Triple a
    • In the expression: (-)
      In an equation for ‘fromPt’: fromPt = (-)
      In the instance declaration for ‘Geometry Triple Triple LineTriple’

Data/SG/Geometry.hs:164:5: error:
    • Could not deduce (Eq a) arising from a use of ‘==’
      from the context: (Geometry rel pt ln,
                         Coord2 rel,
                         Coord2 pt,
                         Fractional a)
        bound by the type signature for:
                   valueAtX :: (Geometry rel pt ln, Coord2 rel, Coord2 pt,
                                Fractional a) =>
                               ln a -> a -> Maybe a
        at Data/SG/Geometry.hs:(161,1)-(162,25)
      Possible fix:
        add (Eq a) to the context of
          the type signature for:
            valueAtX :: (Geometry rel pt ln, Coord2 rel, Coord2 pt,
                         Fractional a) =>
                        ln a -> a -> Maybe a
    • In the expression: xd == 0
      In a stmt of a pattern guard for
                     an equation for ‘valueAtX’:
        xd == 0
      In an equation for ‘valueAtX’:
          valueAtX l tgt
            | xd == 0 = Nothing
            | otherwise = let t = (tgt - x) / xd in Just t
            where
                x = getX $ getLineStart l
                xd = getX $ getLineDir l

Data/SG/Geometry.hs:177:5: error:
    • Could not deduce (Eq a) arising from a use of ‘==’
      from the context: (Geometry rel pt ln,
                         Coord2 rel,
                         Coord2 pt,
                         Fractional a)
        bound by the type signature for:
                   valueAtY :: (Geometry rel pt ln, Coord2 rel, Coord2 pt,
                                Fractional a) =>
                               ln a -> a -> Maybe a
        at Data/SG/Geometry.hs:(174,1)-(175,25)
      Possible fix:
        add (Eq a) to the context of
          the type signature for:
            valueAtY :: (Geometry rel pt ln, Coord2 rel, Coord2 pt,
                         Fractional a) =>
                        ln a -> a -> Maybe a
    • In the expression: yd == 0
      In a stmt of a pattern guard for
                     an equation for ‘valueAtY’:
        yd == 0
      In an equation for ‘valueAtY’:
          valueAtY l tgt
            | yd == 0 = Nothing
            | otherwise = let t = (tgt - y) / yd in Just t
            where
                y = getY $ getLineStart l
                yd = getY $ getLineDir l

Data/SG/Geometry.hs:190:5: error:
    • Could not deduce (Eq a) arising from a use of ‘==’
      from the context: (Geometry rel pt ln,
                         Coord3 rel,
                         Coord3 pt,
                         Fractional a)
        bound by the type signature for:
                   valueAtZ :: (Geometry rel pt ln, Coord3 rel, Coord3 pt,
                                Fractional a) =>
                               ln a -> a -> Maybe a
        at Data/SG/Geometry.hs:(187,1)-(188,25)
      Possible fix:
        add (Eq a) to the context of
          the type signature for:
            valueAtZ :: (Geometry rel pt ln, Coord3 rel, Coord3 pt,
                         Fractional a) =>
                        ln a -> a -> Maybe a
    • In the expression: zd == 0
      In a stmt of a pattern guard for
                     an equation for ‘valueAtZ’:
        zd == 0
      In an equation for ‘valueAtZ’:
          valueAtZ l tgt
            | zd == 0 = Nothing
            | otherwise = let t = (tgt - z) / zd in Just t
            where
                z = getZ $ getLineStart l
                zd = getZ $ getLineDir l
cabal: Leaving directory '/tmp/cabal-tmp-12272/SG-1.0'
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 GLUT-2.7.0.10...
Building GLUT-2.7.0.10...
Installed GLUT-2.7.0.10
cabal: Error: some packages failed to install:
SG-1.0 failed during the building phase. The exception was:
ExitFailure 1
SGdemo-1.0 depends on SG-1.0 which failed to install.

Test log

No test log was submitted for this report.