Resolving dependencies... 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 ) [3 of 8] Compiling Data.SG.Geometry ( Data/SG/Geometry.hs, dist/build/Data/SG/Geometry.o ) Data/SG/Geometry.hs:64:13: 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-15 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: 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-14 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: 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-15 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: 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-14 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:8: 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,13)-(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:8: 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,13)-(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:8: 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,13)-(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 Failed to install SG-1.0 Configuring colour-2.3.3... Building colour-2.3.3... Preprocessing library colour-2.3.3... [ 1 of 14] Compiling Data.Colour.Matrix ( Data/Colour/Matrix.hs, dist/build/Data/Colour/Matrix.o ) [ 2 of 14] Compiling Data.Colour.Chan ( Data/Colour/Chan.hs, dist/build/Data/Colour/Chan.o ) [ 3 of 14] Compiling Data.Colour.CIE.Chromaticity ( Data/Colour/CIE/Chromaticity.hs, dist/build/Data/Colour/CIE/Chromaticity.o ) [ 4 of 14] Compiling Data.Colour.RGB ( Data/Colour/RGB.hs, dist/build/Data/Colour/RGB.o ) [ 5 of 14] Compiling Data.Colour.RGBSpace.HSL ( Data/Colour/RGBSpace/HSL.hs, dist/build/Data/Colour/RGBSpace/HSL.o ) [ 6 of 14] Compiling Data.Colour.RGBSpace.HSV ( Data/Colour/RGBSpace/HSV.hs, dist/build/Data/Colour/RGBSpace/HSV.o ) [ 7 of 14] Compiling Data.Colour.CIE.Illuminant ( Data/Colour/CIE/Illuminant.hs, dist/build/Data/Colour/CIE/Illuminant.o ) [ 8 of 14] Compiling Data.Colour.Internal ( Data/Colour/Internal.hs, dist/build/Data/Colour/Internal.o ) [ 9 of 14] Compiling Data.Colour.SRGB.Linear ( Data/Colour/SRGB/Linear.hs, dist/build/Data/Colour/SRGB/Linear.o ) [10 of 14] Compiling Data.Colour.RGBSpace ( Data/Colour/RGBSpace.hs, dist/build/Data/Colour/RGBSpace.o ) [11 of 14] Compiling Data.Colour.SRGB ( Data/Colour/SRGB.hs, dist/build/Data/Colour/SRGB.o ) [12 of 14] Compiling Data.Colour ( Data/Colour.hs, dist/build/Data/Colour.o ) [13 of 14] Compiling Data.Colour.CIE ( Data/Colour/CIE.hs, dist/build/Data/Colour/CIE.o ) [14 of 14] Compiling Data.Colour.Names ( Data/Colour/Names.hs, dist/build/Data/Colour/Names.o ) In-place registering colour-2.3.3... Running Haddock for colour-2.3.3... Running hscolour for colour-2.3.3... Preprocessing library colour-2.3.3... Preprocessing library colour-2.3.3... Haddock coverage: 0% ( 0 / 5) in 'Data.Colour.Matrix' 0% ( 0 / 10) in 'Data.Colour.Chan' 60% ( 6 / 10) in 'Data.Colour.CIE.Chromaticity' 50% ( 6 / 12) in 'Data.Colour.RGB' 86% ( 6 / 7) in 'Data.Colour.RGBSpace.HSL' 86% ( 6 / 7) in 'Data.Colour.RGBSpace.HSV' 100% ( 21 / 21) in 'Data.Colour.CIE.Illuminant' 59% ( 13 / 22) in 'Data.Colour.Internal' 100% ( 6 / 6) in 'Data.Colour.SRGB.Linear' 83% ( 20 / 24) in 'Data.Colour.RGBSpace' 100% ( 14 / 14) in 'Data.Colour.SRGB' 85% ( 17 / 20) in 'Data.Colour' 88% ( 15 / 17) in 'Data.Colour.CIE' 1% ( 1 /149) in 'Data.Colour.Names' Documentation created: dist/doc/html/colour/index.html Installing library in /srv/hackage/var/build/tmp-install/lib/x86_64-linux-ghc-7.6.3/colour-2.3.3 Registering colour-2.3.3... Installed colour-2.3.3 Configuring utf8-string-0.3.7... Building utf8-string-0.3.7... Preprocessing library utf8-string-0.3.7... [1 of 7] Compiling Codec.Binary.UTF8.String ( Codec/Binary/UTF8/String.hs, dist/build/Codec/Binary/UTF8/String.o ) [2 of 7] Compiling Codec.Binary.UTF8.Generic ( Codec/Binary/UTF8/Generic.hs, dist/build/Codec/Binary/UTF8/Generic.o ) [3 of 7] Compiling Data.String.UTF8 ( Data/String/UTF8.hs, dist/build/Data/String/UTF8.o ) [4 of 7] Compiling System.IO.UTF8 ( System/IO/UTF8.hs, dist/build/System/IO/UTF8.o ) [5 of 7] Compiling System.Environment.UTF8 ( System/Environment/UTF8.hs, dist/build/System/Environment/UTF8.o ) [6 of 7] Compiling Data.ByteString.UTF8 ( Data/ByteString/UTF8.hs, dist/build/Data/ByteString/UTF8.o ) [7 of 7] Compiling Data.ByteString.Lazy.UTF8 ( Data/ByteString/Lazy/UTF8.hs, dist/build/Data/ByteString/Lazy/UTF8.o ) In-place registering utf8-string-0.3.7... Running Haddock for utf8-string-0.3.7... Running hscolour for utf8-string-0.3.7... Preprocessing library utf8-string-0.3.7... Preprocessing library utf8-string-0.3.7... Haddock coverage: 100% ( 8 / 8) in 'Codec.Binary.UTF8.String' 94% ( 16 / 17) in 'Codec.Binary.UTF8.Generic' 89% ( 24 / 27) in 'Data.String.UTF8' 82% ( 14 / 17) in 'System.IO.UTF8' 14% ( 1 / 7) in 'System.Environment.UTF8' 100% ( 17 / 17) in 'Data.ByteString.UTF8' 100% ( 17 / 17) in 'Data.ByteString.Lazy.UTF8' Documentation created: dist/doc/html/utf8-string/index.html Installing library in /srv/hackage/var/build/tmp-install/lib/x86_64-linux-ghc-7.6.3/utf8-string-0.3.7 Registering utf8-string-0.3.7... Installed utf8-string-0.3.7 [1 of 2] Compiling SetupWrapper ( /tmp/cairo-0.12.5.0-13655/cairo-0.12.5.0/SetupWrapper.hs, /tmp/cairo-0.12.5.0-13655/cairo-0.12.5.0/dist/setup/SetupWrapper.o ) [2 of 2] Compiling Main ( /tmp/cairo-0.12.5.0-13655/cairo-0.12.5.0/Setup.hs, /tmp/cairo-0.12.5.0-13655/cairo-0.12.5.0/dist/setup/Main.o ) Linking /tmp/cairo-0.12.5.0-13655/cairo-0.12.5.0/dist/setup/setup ... [1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o ) [2 of 2] Compiling Main ( SetupMain.hs, dist/setup-wrapper/Main.o ) Linking dist/setup-wrapper/setup ... Configuring cairo-0.12.5.0... Building cairo-0.12.5.0... Preprocessing library cairo-0.12.5.0... [ 1 of 18] Compiling Graphics.Rendering.Cairo.Matrix ( dist/build/Graphics/Rendering/Cairo/Matrix.hs, dist/build/Graphics/Rendering/Cairo/Matrix.o ) [ 2 of 18] Compiling Graphics.Rendering.Cairo.Types ( dist/build/Graphics/Rendering/Cairo/Types.hs, dist/build/Graphics/Rendering/Cairo/Types.o ) [ 3 of 18] Compiling Graphics.Rendering.Cairo.Internal.Drawing.Cairo ( dist/build/Graphics/Rendering/Cairo/Internal/Drawing/Cairo.hs, dist/build/Graphics/Rendering/Cairo/Internal/Drawing/Cairo.o ) [ 4 of 18] Compiling Graphics.Rendering.Cairo.Internal.Drawing.Patterns ( dist/build/Graphics/Rendering/Cairo/Internal/Drawing/Patterns.hs, dist/build/Graphics/Rendering/Cairo/Internal/Drawing/Patterns.o ) [ 5 of 18] Compiling Graphics.Rendering.Cairo.Internal.Drawing.Transformations ( dist/build/Graphics/Rendering/Cairo/Internal/Drawing/Transformations.hs, dist/build/Graphics/Rendering/Cairo/Internal/Drawing/Transformations.o ) [ 6 of 18] Compiling Graphics.Rendering.Cairo.Internal.Fonts.FontOptions ( dist/build/Graphics/Rendering/Cairo/Internal/Fonts/FontOptions.hs, dist/build/Graphics/Rendering/Cairo/Internal/Fonts/FontOptions.o ) [ 7 of 18] Compiling Graphics.Rendering.Cairo.Internal.Surfaces.Image ( dist/build/Graphics/Rendering/Cairo/Internal/Surfaces/Image.hs, dist/build/Graphics/Rendering/Cairo/Internal/Surfaces/Image.o ) [ 8 of 18] Compiling Graphics.Rendering.Cairo.Internal.Surfaces.PDF ( dist/build/Graphics/Rendering/Cairo/Internal/Surfaces/PDF.hs, dist/build/Graphics/Rendering/Cairo/Internal/Surfaces/PDF.o ) [ 9 of 18] Compiling Graphics.Rendering.Cairo.Internal.Surfaces.PNG ( dist/build/Graphics/Rendering/Cairo/Internal/Surfaces/PNG.hs, dist/build/Graphics/Rendering/Cairo/Internal/Surfaces/PNG.o ) [10 of 18] Compiling Graphics.Rendering.Cairo.Internal.Surfaces.PS ( dist/build/Graphics/Rendering/Cairo/Internal/Surfaces/PS.hs, dist/build/Graphics/Rendering/Cairo/Internal/Surfaces/PS.o ) [11 of 18] Compiling Graphics.Rendering.Cairo.Internal.Surfaces.SVG ( dist/build/Graphics/Rendering/Cairo/Internal/Surfaces/SVG.hs, dist/build/Graphics/Rendering/Cairo/Internal/Surfaces/SVG.o ) [12 of 18] Compiling Graphics.Rendering.Cairo.Internal.Surfaces.Surface ( dist/build/Graphics/Rendering/Cairo/Internal/Surfaces/Surface.hs, dist/build/Graphics/Rendering/Cairo/Internal/Surfaces/Surface.o ) [13 of 18] Compiling Graphics.Rendering.Cairo.Internal.Region ( dist/build/Graphics/Rendering/Cairo/Internal/Region.hs, dist/build/Graphics/Rendering/Cairo/Internal/Region.o ) [14 of 18] Compiling Graphics.Rendering.Cairo.Internal.Utilities ( dist/build/Graphics/Rendering/Cairo/Internal/Utilities.hs, dist/build/Graphics/Rendering/Cairo/Internal/Utilities.o ) Graphics/Rendering/Cairo/Internal/Utilities.chs:32:3: Warning: In the use of `unsafePerformIO' (imported from Foreign): Deprecated: "Use System.IO.Unsafe.unsafePerformIO instead; This function will be removed in the next release" [15 of 18] Compiling Graphics.Rendering.Cairo.Internal.Drawing.Paths ( dist/build/Graphics/Rendering/Cairo/Internal/Drawing/Paths.hs, dist/build/Graphics/Rendering/Cairo/Internal/Drawing/Paths.o ) [16 of 18] Compiling Graphics.Rendering.Cairo.Internal.Drawing.Text ( dist/build/Graphics/Rendering/Cairo/Internal/Drawing/Text.hs, dist/build/Graphics/Rendering/Cairo/Internal/Drawing/Text.o ) [17 of 18] Compiling Graphics.Rendering.Cairo.Internal ( Graphics/Rendering/Cairo/Internal.hs, dist/build/Graphics/Rendering/Cairo/Internal.o ) [18 of 18] Compiling Graphics.Rendering.Cairo ( Graphics/Rendering/Cairo.hs, dist/build/Graphics/Rendering/Cairo.o ) In-place registering cairo-0.12.5.0... Running Haddock for cairo-0.12.5.0... Running hscolour for cairo-0.12.5.0... Preprocessing library cairo-0.12.5.0... Preprocessing library cairo-0.12.5.0... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: rts-1.0 Graphics/Rendering/Cairo/Internal/Utilities.chs:32:3: Warning: In the use of `unsafePerformIO' (imported from Foreign): Deprecated: "Use System.IO.Unsafe.unsafePerformIO instead; This function will be removed in the next release" Haddock coverage: 17% ( 2 / 12) in 'Graphics.Rendering.Cairo.Matrix' 42% ( 23 / 55) in 'Graphics.Rendering.Cairo.Types' 1% ( 1 /101) in 'Graphics.Rendering.Cairo.Internal.Drawing.Cairo' 3% ( 1 / 33) in 'Graphics.Rendering.Cairo.Internal.Drawing.Patterns' 4% ( 1 / 23) in 'Graphics.Rendering.Cairo.Internal.Drawing.Transformations' 3% ( 1 / 31) in 'Graphics.Rendering.Cairo.Internal.Fonts.FontOptions' 6% ( 1 / 17) in 'Graphics.Rendering.Cairo.Internal.Surfaces.Image' 20% ( 1 / 5) in 'Graphics.Rendering.Cairo.Internal.Surfaces.PDF' 20% ( 1 / 5) in 'Graphics.Rendering.Cairo.Internal.Surfaces.PNG' 20% ( 1 / 5) in 'Graphics.Rendering.Cairo.Internal.Surfaces.PS' 33% ( 1 / 3) in 'Graphics.Rendering.Cairo.Internal.Surfaces.SVG' 4% ( 1 / 23) in 'Graphics.Rendering.Cairo.Internal.Surfaces.Surface' 2% ( 1 / 47) in 'Graphics.Rendering.Cairo.Internal.Region' 12% ( 1 / 8) in 'Graphics.Rendering.Cairo.Internal.Utilities' 4% ( 1 / 27) in 'Graphics.Rendering.Cairo.Internal.Drawing.Paths' 6% ( 1 / 17) in 'Graphics.Rendering.Cairo.Internal.Drawing.Text' 6% ( 24 /388) in 'Graphics.Rendering.Cairo.Internal' 91% (185 /203) in 'Graphics.Rendering.Cairo' Warning: Graphics.Rendering.Cairo: could not find link destinations for: Graphics.Rendering.Cairo.Types.PixelData Data.Array.Base.unsafeRead Data.Array.Base.unsafeWrite Documentation created: dist/doc/html/cairo/index.html Installing library in /srv/hackage/var/build/tmp-install/lib/x86_64-linux-ghc-7.6.3/cairo-0.12.5.0 Registering cairo-0.12.5.0... Installed cairo-0.12.5.0 cabal: Error: some packages failed to install: SG-1.0 failed during the building phase. The exception was: ExitFailure 1 hcg-minus-0.12 depends on SG-1.0 which failed to install. hcg-minus-cairo-0.12 depends on SG-1.0 which failed to install.