Build #2 for libraft-0.1.0.0

[all reports]

Package libraft-0.1.0.0
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2018-12-03 12:23:02.702918198 UTC
Compiler ghc-8.6.1
OS linux
Arch x86_64
Dependencies attoparsec-0.13.2.2, base-4.12.0.0, bytestring-0.10.8.2, cereal-0.5.7.0, concurrency-1.6.2.0, containers-0.6.0.1, directory-1.3.3.0, exceptions-0.10.0, haskeline-0.7.4.3, mtl-2.2.2, network-2.8.0.0, network-simple-0.4.3, parsec-3.1.13.0, protolude-0.2.3, random-1.1, repline-0.2.0.0, text-1.2.3.1, time-1.8.0.2, transformers-0.5.5.0, word8-0.1.3, attoparsec-0.13.2.2, base-4.12.0.0, bytestring-0.10.8.2, cereal-0.5.7.0, concurrency-1.6.2.0, containers-0.6.0.1, directory-1.3.3.0, exceptions-0.10.0, haskeline-0.7.4.3, mtl-2.2.2, network-2.8.0.0, network-simple-0.4.3, parsec-3.1.13.0, protolude-0.2.3, random-1.1, repline-0.2.0.0, stm-2.5.0.0, text-1.2.3.1, time-1.8.0.2, transformers-0.5.5.0, word8-0.1.3
Flags none

Code Coverage

No Code Coverage was submitted for this report.

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: https://wiki.haskell.org/Cabal/NewBuild

Resolving dependencies...
Starting     base-orphans-0.8
Starting     cereal-0.5.7.0
Building     base-orphans-0.8
Building     cereal-0.5.7.0
Completed    base-orphans-0.8
Starting     hashable-1.2.7.0
Building     hashable-1.2.7.0
Completed    hashable-1.2.7.0
Starting     integer-logarithms-1.0.2.2
Building     integer-logarithms-1.0.2.2
Completed    cereal-0.5.7.0
Starting     mtl-compat-0.2.1.3
Building     mtl-compat-0.2.1.3
Completed    mtl-compat-0.2.1.3
Starting     network-2.8.0.0
Completed    integer-logarithms-1.0.2.2
Starting     primitive-0.6.4.0
Building     primitive-0.6.4.0
Building     network-2.8.0.0
Completed    network-2.8.0.0
Starting     random-1.1
Building     random-1.1
Completed    primitive-0.6.4.0
Starting     repline-0.2.0.0
Building     repline-0.2.0.0
Completed    random-1.1
Starting     transformers-compat-0.6.2
Completed    repline-0.2.0.0
Starting     word8-0.1.3
Building     transformers-compat-0.6.2
Building     word8-0.1.3
Completed    word8-0.1.3
Starting     async-2.2.1
Building     async-2.2.1
Completed    transformers-compat-0.6.2
Starting     socks-0.5.6
Building     socks-0.5.6
Completed    async-2.2.1
Starting     scientific-0.3.6.2
Building     scientific-0.3.6.2
Completed    socks-0.5.6
Starting     atomic-primops-0.8.2
Building     atomic-primops-0.8.2
Completed    scientific-0.3.6.2
Starting     transformers-base-0.4.5.2
Completed    atomic-primops-0.8.2
Starting     exceptions-0.10.0
Building     transformers-base-0.4.5.2
Building     exceptions-0.10.0
Completed    transformers-base-0.4.5.2
Starting     protolude-0.2.3
Building     protolude-0.2.3
Completed    exceptions-0.10.0
Starting     attoparsec-0.13.2.2
Building     attoparsec-0.13.2.2
Completed    protolude-0.2.3
Starting     monad-control-1.0.2.3
Building     monad-control-1.0.2.3
Completed    attoparsec-0.13.2.2
Starting     safe-exceptions-0.1.7.0
Completed    monad-control-1.0.2.3
Starting     concurrency-1.6.2.0
Building     safe-exceptions-0.1.7.0
Building     concurrency-1.6.2.0
Completed    safe-exceptions-0.1.7.0
Starting     network-simple-0.4.3
Building     network-simple-0.4.3
Completed    network-simple-0.4.3
Completed    concurrency-1.6.2.0
Starting     libraft-0.1.0.0
Building     libraft-0.1.0.0
Failed to install libraft-0.1.0.0
Build log ( /home/builder/.cabal/logs/ghc-8.6.1/libraft-0.1.0.0-94tWzcR7ZKX3uDpuvu9a1K.log ):
cabal: Entering directory '/tmp/cabal-tmp-4247/libraft-0.1.0.0'
Configuring libraft-0.1.0.0...
Preprocessing library for libraft-0.1.0.0..
Building library for libraft-0.1.0.0..
[ 1 of 22] Compiling Control.Concurrent.STM.Timer ( src/Control/Concurrent/STM/Timer.hs, dist/build/Control/Concurrent/STM/Timer.o )
[ 2 of 22] Compiling Paths_libraft    ( dist/build/autogen/Paths_libraft.hs, dist/build/Paths_libraft.o )
[ 3 of 22] Compiling Raft.Types       ( src/Raft/Types.hs, dist/build/Raft/Types.o )
[ 4 of 22] Compiling Raft.Persistent  ( src/Raft/Persistent.hs, dist/build/Raft/Persistent.o )
[ 5 of 22] Compiling Raft.Log         ( src/Raft/Log.hs, dist/build/Raft/Log.o )
[ 6 of 22] Compiling Raft.RPC         ( src/Raft/RPC.hs, dist/build/Raft/RPC.o )
[ 7 of 22] Compiling Raft.NodeState   ( src/Raft/NodeState.hs, dist/build/Raft/NodeState.o )
[ 8 of 22] Compiling Raft.Logging     ( src/Raft/Logging.hs, dist/build/Raft/Logging.o )
[ 9 of 22] Compiling Raft.Config      ( src/Raft/Config.hs, dist/build/Raft/Config.o )
[10 of 22] Compiling Raft.Client      ( src/Raft/Client.hs, dist/build/Raft/Client.o )
[11 of 22] Compiling Raft.Event       ( src/Raft/Event.hs, dist/build/Raft/Event.o )
[12 of 22] Compiling Raft.Action      ( src/Raft/Action.hs, dist/build/Raft/Action.o )
[13 of 22] Compiling Raft.Monad       ( src/Raft/Monad.hs, dist/build/Raft/Monad.o )
[14 of 22] Compiling Raft.Leader      ( src/Raft/Leader.hs, dist/build/Raft/Leader.o )
[15 of 22] Compiling Raft.Follower    ( src/Raft/Follower.hs, dist/build/Raft/Follower.o )
[16 of 22] Compiling Raft.Candidate   ( src/Raft/Candidate.hs, dist/build/Raft/Candidate.o )
[17 of 22] Compiling Raft.Handle      ( src/Raft/Handle.hs, dist/build/Raft/Handle.o )
[18 of 22] Compiling Raft             ( src/Raft.hs, dist/build/Raft.o )

src/Raft.hs:252:7: error:
    • Could not deduce (Control.Monad.Fail.MonadFail (RaftT v m))
        arising from a do statement
        with the failable pattern ‘Right log :: Either (RaftReadLogError m) (Entries v)’
      from the context: (Show v, Show sm, Show (Action sm v), MonadIO m,
                         MonadConc m, RSM sm v m, Show (RSMPError sm v), RaftSendRPC m v,
                         RaftSendClient m sm, RaftLog m v, RaftLogExceptions m,
                         RaftPersist m, Exception (RaftPersistError m))
        bound by the type signature for:
                   handleEventLoop :: forall sm v (m :: * -> *).
                                      (Show v, Show sm, Show (Action sm v), MonadIO m, MonadConc m,
                                       RSM sm v m, Show (RSMPError sm v), RaftPersist m,
                                       RaftSendRPC m v, RaftSendClient m sm, RaftLog m v,
                                       RaftLogExceptions m, RaftPersist m,
                                       Exception (RaftPersistError m)) =>
                                      sm -> RaftT v m ()
        at src/Raft.hs:(223,1)-(238,17)
    • In a stmt of a 'do' block:
        Right log :: Either (RaftReadLogError m) (Entries v) <- lift
                                                                  $ readLogEntriesFrom index0
      In the expression:
        do event <- atomically . readTChan =<< asks eventChan
           loadLogEntryTermAtAePrevLogIndex event
           raftNodeState <- get
           logDebug $ "[Event]: " <> show event
           ....
      In an equation for ‘handleEventLoop'’:
          handleEventLoop' stateMachine persistentState
            = do event <- atomically . readTChan =<< asks eventChan
                 loadLogEntryTermAtAePrevLogIndex event
                 raftNodeState <- get
                 ....
    |
252 |       Right log :: Either (RaftReadLogError m) (Entries v) <- lift $ readLogEntriesFrom index0
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-4247/libraft-0.1.0.0'
cabal: Error: some packages failed to install:
libraft-0.1.0.0-94tWzcR7ZKX3uDpuvu9a1K failed during the building phase. The
exception was:
ExitFailure 1

Test log

No test log was submitted for this report.