Build #3 for dynamic-graphs-

[all reports]

Package dynamic-graphs-
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2019-01-11 13:02:26.045332309 UTC
Compiler ghc-8.6.3
OS linux
Arch x86_64
Dependencies base-, containers-, hashable-, hashtables-, mwc-random-, primitive-, unordered-containers-, vector-
Flags -build-extra-executables

Build log

[view raw]

Warning: The install command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-install
command or the legacy v1-install alias as new-style projects will become the
default in the next version of cabal-install. Please file a bug if you cannot
replicate a working v1- use case with the new-style commands.

For more information, see:

Resolving dependencies...
Starting     hashable-
Starting     data-default-class-
Starting     primitive-
Building     data-default-class-
Building     primitive-
Building     hashable-
Completed    data-default-class-
Completed    hashable-
Starting     unordered-containers-
Building     unordered-containers-
Completed    unordered-containers-
Completed    primitive-
Starting     vector-
Building     vector-
Completed    vector-
Starting     vector-th-unbox-
Starting     hashtables-
Building     vector-th-unbox-
Building     hashtables-
Completed    vector-th-unbox-
Starting     math-functions-
Building     math-functions-
Completed    hashtables-
Completed    math-functions-
Starting     mwc-random-
Building     mwc-random-
Completed    mwc-random-
Starting     dynamic-graphs-
Building     dynamic-graphs-
Failed to install dynamic-graphs-
Build log ( /home/builder/.cabal/logs/ghc-8.6.3/dynamic-graphs- ):
cabal: Entering directory '/tmp/cabal-tmp-27933/dynamic-graphs-'
Configuring dynamic-graphs-
Preprocessing library for dynamic-graphs-
Building library for dynamic-graphs-
[1 of 7] Compiling Data.Graph.Dynamic.Internal.HashTable ( src/Data/Graph/Dynamic/Internal/HashTable.hs, dist/build/Data/Graph/Dynamic/Internal/HashTable.o )
[2 of 7] Compiling Data.Graph.Dynamic.Internal.Tree ( src/Data/Graph/Dynamic/Internal/Tree.hs, dist/build/Data/Graph/Dynamic/Internal/Tree.o )
[3 of 7] Compiling Data.Graph.Dynamic.Internal.Splay ( src/Data/Graph/Dynamic/Internal/Splay.hs, dist/build/Data/Graph/Dynamic/Internal/Splay.o )
[4 of 7] Compiling Data.Graph.Dynamic.Internal.Random ( src/Data/Graph/Dynamic/Internal/Random.hs, dist/build/Data/Graph/Dynamic/Internal/Random.o )
[5 of 7] Compiling Data.Graph.Dynamic.Internal.Avl ( src/Data/Graph/Dynamic/Internal/Avl.hs, dist/build/Data/Graph/Dynamic/Internal/Avl.o )
[6 of 7] Compiling Data.Graph.Dynamic.EulerTour ( src/Data/Graph/Dynamic/EulerTour.hs, dist/build/Data/Graph/Dynamic/EulerTour.o )
[7 of 7] Compiling Data.Graph.Dynamic.Levels ( src/Data/Graph/Dynamic/Levels.hs, dist/build/Data/Graph/Dynamic/Levels.o )

src/Data/Graph/Dynamic/Levels.hs:238:11: error:
    • Could not deduce (Control.Monad.Fail.MonadFail m)
        arising from a do statement
        with the failable pattern ‘Just sRoot’
      from the context: (Eq v, Hashable v, Tree t, PrimMonad m)
        bound by the type signature for:
                   cut :: forall (t :: * -> * -> * -> *) (m :: * -> *) v.
                          (Eq v, Hashable v, Tree t, PrimMonad m) =>
                          Graph t (PrimState m) v -> v -> v -> m Bool
        at src/Data/Graph/Dynamic/Levels.hs:(211,1)-(213,50)
      Possible fix:
        add (Control.Monad.Fail.MonadFail m) to the context of
          the type signature for:
            cut :: forall (t :: * -> * -> * -> *) (m :: * -> *) v.
                   (Eq v, Hashable v, Tree t, PrimMonad m) =>
                   Graph t (PrimState m) v -> v -> v -> m Bool
    • In a stmt of a 'do' block: Just sRoot <- ET.findRoot etf smaller
      In the expression:
        do aSize <- ET.componentSize etf a
           bSize <- ET.componentSize etf b
           let (smaller, _bigger) = ...
           Just sRoot <- ET.findRoot etf smaller
      In a case alternative:
            -> do aSize <- ET.componentSize etf a
                  bSize <- ET.componentSize etf b
                  let (smaller, _bigger) = ...
238 |           Just sRoot <- ET.findRoot etf smaller
    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-27933/dynamic-graphs-'
cabal: Error: some packages failed to install:
dynamic-graphs- failed during the building
phase. The exception was:
ExitFailure 1