Build #2 for appendful-persistent-0.0.0.0

[all reports]

Package appendful-persistent-0.0.0.0
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2022-04-27 16:23:02.892527906 UTC
Compiler ghc-8.10.2
OS linux
Arch x86_64
Dependencies appendful-0.0.0.0, base-4.14.1.0, containers-0.6.2.1, microlens-0.4.12.0, persistent-2.14.0.0
Flags none

Code Coverage

No Code Coverage was submitted for this report.

Build log

[view raw]

Resolving dependencies...
Starting     auto-update-0.1.6
Starting     StateVar-1.2.2
Starting     base-orphans-0.8.6
Starting     base-compat-0.12.1
Building     StateVar-1.2.2
Building     auto-update-0.1.6
Building     base-orphans-0.8.6
Building     base-compat-0.12.1
Completed    StateVar-1.2.2
Starting     base64-bytestring-1.2.1.0
Completed    auto-update-0.1.6
Starting     blaze-builder-0.4.2.2
Building     base64-bytestring-1.2.1.0
Building     blaze-builder-0.4.2.2
Completed    base64-bytestring-1.2.1.0
Starting     data-default-class-0.1.2.0
Building     data-default-class-0.1.2.0
Completed    base-orphans-0.8.6
Starting     dlist-1.0
Completed    blaze-builder-0.4.2.2
Starting     easy-file-0.2.2
Building     dlist-1.0
Completed    base-compat-0.12.1
Starting     indexed-traversable-0.1.2
Building     easy-file-0.2.2
Completed    data-default-class-0.1.2.0
Starting     integer-logarithms-1.0.3.1
Building     indexed-traversable-0.1.2
Building     integer-logarithms-1.0.3.1
Completed    easy-file-0.2.2
Starting     lift-type-0.1.0.1
Completed    integer-logarithms-1.0.3.1
Starting     microlens-0.4.12.0
Building     lift-type-0.1.0.1
Building     microlens-0.4.12.0
Completed    dlist-1.0
Starting     monad-loops-0.4.3
Building     monad-loops-0.4.3
Completed    lift-type-0.1.0.1
Starting     network-3.1.2.7
Completed    indexed-traversable-0.1.2
Starting     old-locale-1.0.0.7
Building     old-locale-1.0.0.7
Completed    monad-loops-0.4.3
Starting     path-pieces-0.2.1
Completed    microlens-0.4.12.0
Starting     primitive-0.7.3.0
Building     path-pieces-0.2.1
Completed    old-locale-1.0.0.7
Starting     silently-1.2.5.2
Building     primitive-0.7.3.0
Building     silently-1.2.5.2
Building     network-3.1.2.7
Completed    path-pieces-0.2.1
Starting     split-0.2.3.4
Completed    silently-1.2.5.2
Starting     splitmix-0.1.0.4
Building     split-0.2.3.4
Building     splitmix-0.1.0.4
Completed    split-0.2.3.4
Starting     stm-chans-3.0.0.6
Building     stm-chans-3.0.0.6
Completed    splitmix-0.1.0.4
Starting     tagged-0.8.6.1
Building     tagged-0.8.6.1
Completed    stm-chans-3.0.0.6
Starting     th-abstraction-0.4.3.0
Building     th-abstraction-0.4.3.0
Completed    tagged-0.8.6.1
Starting     transformers-compat-0.7.1
Building     transformers-compat-0.7.1
Completed    network-3.1.2.7
Starting     unix-compat-0.5.4
Building     unix-compat-0.5.4
Completed    th-abstraction-0.4.3.0
Starting     unliftio-core-0.2.0.1
Completed    transformers-compat-0.7.1
Starting     validity-0.12.0.1
Building     unliftio-core-0.2.0.1
Building     validity-0.12.0.1
Completed    primitive-0.7.3.0
Starting     zlib-0.6.2.3
Building     zlib-0.6.2.3
Completed    unix-compat-0.5.4
Starting     contravariant-1.5.5
Completed    unliftio-core-0.2.0.1
Starting     hashable-1.4.0.2
Building     contravariant-1.5.5
Building     hashable-1.4.0.2
Completed    validity-0.12.0.1
Starting     blaze-markup-0.8.2.8
Building     blaze-markup-0.8.2.8
Completed    contravariant-1.5.5
Starting     cookie-0.4.5
Building     cookie-0.4.5
Completed    hashable-1.4.0.2
Starting     old-time-1.1.0.3
Completed    zlib-0.6.2.3
Starting     random-1.2.1
Completed    blaze-markup-0.8.2.8
Starting     distributive-0.6.2.1
Building     random-1.2.1
Building     distributive-0.6.2.1
Completed    cookie-0.4.5
Starting     th-lift-0.8.2
Building     old-time-1.1.0.3
Building     th-lift-0.8.2
Completed    distributive-0.6.2.1
Starting     transformers-base-0.4.6
Building     transformers-base-0.4.6
Completed    th-lift-0.8.2
Starting     vector-0.12.3.1
Building     vector-0.12.3.1
Completed    old-time-1.1.0.3
Starting     resourcet-1.2.4.3
Building     resourcet-1.2.4.3
Completed    transformers-base-0.4.6
Starting     validity-containers-0.5.0.4
Building     validity-containers-0.5.0.4
Completed    validity-containers-0.5.0.4
Starting     unordered-containers-0.2.19.1
Building     unordered-containers-0.2.19.1
Completed    resourcet-1.2.4.3
Starting     time-compat-1.9.6.1
Building     time-compat-1.9.6.1
Completed    random-1.2.1
Starting     text-short-0.1.5
Building     text-short-0.1.5
Completed    time-compat-1.9.6.1
Starting     scientific-0.3.7.0
Building     scientific-0.3.7.0
Completed    text-short-0.1.5
Starting     data-fix-0.3.2
Building     data-fix-0.3.2
Completed    data-fix-0.3.2
Starting     case-insensitive-1.2.1.0
Building     case-insensitive-1.2.1.0
Completed    scientific-0.3.7.0
Starting     async-2.2.4
Building     async-2.2.4
Completed    unordered-containers-0.2.19.1
Starting     OneTuple-0.3.1
Completed    case-insensitive-1.2.1.0
Starting     blaze-html-0.9.1.2
Building     OneTuple-0.3.1
Building     blaze-html-0.9.1.2
Completed    async-2.2.4
Starting     comonad-5.0.8
Building     comonad-5.0.8
Completed    OneTuple-0.3.1
Starting     unix-time-0.4.7
Building     unix-time-0.4.7
Completed    comonad-5.0.8
Starting     monad-control-1.0.3.1
Building     monad-control-1.0.3.1
Completed    unix-time-0.4.7
Starting     uuid-types-1.0.5
Building     uuid-types-1.0.5
Completed    monad-control-1.0.3.1
Starting     QuickCheck-2.14.2
Building     QuickCheck-2.14.2
Completed    uuid-types-1.0.5
Starting     attoparsec-0.14.4
Building     attoparsec-0.14.4
Completed    blaze-html-0.9.1.2
Starting     vault-0.3.1.5
Building     vault-0.3.1.5
Completed    vector-0.12.3.1
Starting     http-types-0.12.3
Completed    vault-0.3.1.5
Starting     unliftio-0.2.22.0
Building     http-types-0.12.3
Building     unliftio-0.2.22.0
Completed    attoparsec-0.14.4
Starting     typed-process-0.2.8.0
Building     typed-process-0.2.8.0
Completed    http-types-0.12.3
Starting     streaming-commons-0.2.2.4
Building     streaming-commons-0.2.2.4
Completed    typed-process-0.2.8.0
Starting     base-compat-batteries-0.12.1
Building     base-compat-batteries-0.12.1
Completed    QuickCheck-2.14.2
Starting     bifunctors-5.5.11
Building     bifunctors-5.5.11
Completed    unliftio-0.2.22.0
Starting     fast-logger-3.1.1
Building     fast-logger-3.1.1
Completed    streaming-commons-0.2.2.4
Starting     lifted-base-0.2.3.12
Completed    base-compat-batteries-0.12.1
Starting     vector-algorithms-0.8.0.4
Building     lifted-base-0.2.3.12
Building     vector-algorithms-0.8.0.4
Completed    fast-logger-3.1.1
Starting     th-lift-instances-0.1.19
Building     th-lift-instances-0.1.19
Completed    lifted-base-0.2.3.12
Starting     resource-pool-0.2.3.2
Building     resource-pool-0.2.3.2
Completed    th-lift-instances-0.1.19
Starting     indexed-traversable-instances-0.1.1
Building     indexed-traversable-instances-0.1.1
Completed    resource-pool-0.2.3.2
Starting     attoparsec-iso8601-1.0.2.1
Building     attoparsec-iso8601-1.0.2.1
Completed    indexed-traversable-instances-0.1.1
Starting     witherable-0.4.2
Building     witherable-0.4.2
Completed    attoparsec-iso8601-1.0.2.1
Starting     http-api-data-0.4.3
Building     http-api-data-0.4.3
Completed    bifunctors-5.5.11
Starting     semigroupoids-5.3.7
Building     semigroupoids-5.3.7
Completed    vector-algorithms-0.8.0.4
Starting     assoc-1.0.2
Building     assoc-1.0.2
Completed    assoc-1.0.2
Starting     mono-traversable-1.0.15.3
Completed    witherable-0.4.2
Starting     these-1.1.1.1
Building     mono-traversable-1.0.15.3
Building     these-1.1.1.1
Completed    http-api-data-0.4.3
Completed    these-1.1.1.1
Starting     strict-0.4.0.1
Building     strict-0.4.0.1
Completed    semigroupoids-5.3.7
Starting     semialign-1.2.0.1
Building     semialign-1.2.0.1
Completed    strict-0.4.0.1
Completed    semialign-1.2.0.1
Starting     aeson-2.0.3.0
Building     aeson-2.0.3.0
Completed    mono-traversable-1.0.15.3
Starting     conduit-1.3.4.2
Building     conduit-1.3.4.2
Completed    conduit-1.3.4.2
Starting     conduit-extra-1.3.5
Building     conduit-extra-1.3.5
Completed    conduit-extra-1.3.5
Starting     monad-logger-0.3.36
Building     monad-logger-0.3.36
Completed    monad-logger-0.3.36
Completed    aeson-2.0.3.0
Starting     appendful-0.0.0.0
Starting     persistent-2.14.0.0
Building     appendful-0.0.0.0
Building     persistent-2.14.0.0
Completed    appendful-0.0.0.0
Completed    persistent-2.14.0.0
Starting     appendful-persistent-0.0.0.0
Building     appendful-persistent-0.0.0.0
Failed to install appendful-persistent-0.0.0.0
Build log ( /home/builder/.cabal/logs/ghc-8.10.2/appendful-persistent-0.0.0.0-8RqxGUY36SL3zmIBHhJ1Ce.log ):
cabal: Entering directory '/tmp/cabal-tmp-18572/appendful-persistent-0.0.0.0'
Configuring appendful-persistent-0.0.0.0...
Preprocessing library for appendful-persistent-0.0.0.0..
Building library for appendful-persistent-0.0.0.0..
[1 of 2] Compiling Data.Appendful.Persistent ( src/Data/Appendful/Persistent.hs, dist/build/Data/Appendful/Persistent.o, dist/build/Data/Appendful/Persistent.dyn_o )

src/Data/Appendful/Persistent.hs:101:7: error:
    " Could not deduce (Database.Persist.Class.PersistEntity.SafeToInsert
                          clientRecord)
        arising from a use of insert_
      from the context: (PersistEntity clientRecord, PersistField sid,
                         PersistEntityBackend clientRecord ~ SqlBackend, MonadIO m)
        bound by the type signature for:
                   clientSyncProcessor :: forall clientRecord sid (m :: * -> *) a.
                                          (PersistEntity clientRecord, PersistField sid,
                                           PersistEntityBackend clientRecord ~ SqlBackend,
                                           MonadIO m) =>
                                          (sid -> a -> clientRecord)
                                          -> EntityField clientRecord (Maybe sid)
                                          -> ClientSyncProcessor
                                               (Key clientRecord) sid a (SqlPersistT m)
        at src/Data/Appendful/Persistent.hs:(87,1)-(97,62)
      Possible fix:
        add (Database.Persist.Class.PersistEntity.SafeToInsert
               clientRecord) to the context of
          the type signature for:
            clientSyncProcessor :: forall clientRecord sid (m :: * -> *) a.
                                   (PersistEntity clientRecord, PersistField sid,
                                    PersistEntityBackend clientRecord ~ SqlBackend, MonadIO m) =>
                                   (sid -> a -> clientRecord)
                                   -> EntityField clientRecord (Maybe sid)
                                   -> ClientSyncProcessor (Key clientRecord) sid a (SqlPersistT m)
    " In the expression: insert_ $ func si st
      In the second argument of ($), namely
        \ (si, st) -> insert_ $ func si st
      In the expression:
        forM_ (M.toList m) $ \ (si, st) -> insert_ $ func si st
    |
101 |       insert_ $ func si st
    |       ^^^^^^^^^^^^^^^^^^^^

src/Data/Appendful/Persistent.hs:142:42: error:
    " Could not deduce (Database.Persist.Class.PersistEntity.SafeToInsert
                          record)
        arising from a use of insert
      from the context: (PersistEntity record,
                         PersistEntityBackend record ~ SqlBackend, MonadIO m)
        bound by the type signature for:
                   serverSyncProcessor :: forall record (m :: * -> *) a ci.
                                          (PersistEntity record,
                                           PersistEntityBackend record ~ SqlBackend, MonadIO m) =>
                                          [Filter record]
                                          -> (record -> a)
                                          -> (a -> record)
                                          -> ServerSyncProcessor ci (Key record) a (SqlPersistT m)
        at src/Data/Appendful/Persistent.hs:(124,1)-(137,55)
      Possible fix:
        add (Database.Persist.Class.PersistEntity.SafeToInsert
               record) to the context of
          the type signature for:
            serverSyncProcessor :: forall record (m :: * -> *) a ci.
                                   (PersistEntity record, PersistEntityBackend record ~ SqlBackend,
                                    MonadIO m) =>
                                   [Filter record]
                                   -> (record -> a)
                                   -> (a -> record)
                                   -> ServerSyncProcessor ci (Key record) a (SqlPersistT m)
    " In the first argument of (.), namely insert
      In the second argument of ($), namely insert . funcFrom
      In the expression: mapM $ insert . funcFrom
    |
142 |     serverSyncProcessorAddItems = mapM $ insert . funcFrom
    |                                          ^^^^^^

src/Data/Appendful/Persistent.hs:190:7: error:
    " Could not deduce (Database.Persist.Class.PersistEntity.SafeToInsert
                          record)
        arising from a use of insert_
      from the context: (Ord sid, PersistEntity record,
                         PersistEntityBackend record ~ SqlBackend, MonadIO m)
        bound by the type signature for:
                   serverSyncProcessorWithCustomId :: forall sid record (m :: * -> *)
                                                             a ci.
                                                      (Ord sid, PersistEntity record,
                                                       PersistEntityBackend record ~ SqlBackend,
                                                       MonadIO m) =>
                                                      SqlPersistT m sid
                                                      -> [Filter record]
                                                      -> (record -> (sid, a))
                                                      -> (sid -> a -> record)
                                                      -> ServerSyncProcessor
                                                           ci sid a (SqlPersistT m)
        at src/Data/Appendful/Persistent.hs:(166,1)-(182,46)
      Possible fix:
        add (Database.Persist.Class.PersistEntity.SafeToInsert
               record) to the context of
          the type signature for:
            serverSyncProcessorWithCustomId :: forall sid record (m :: * -> *)
                                                      a ci.
                                               (Ord sid, PersistEntity record,
                                                PersistEntityBackend record ~ SqlBackend,
                                                MonadIO m) =>
                                               SqlPersistT m sid
                                               -> [Filter record]
                                               -> (record -> (sid, a))
                                               -> (sid -> a -> record)
                                               -> ServerSyncProcessor ci sid a (SqlPersistT m)
    " In a stmt of a 'do' block: insert_ record
      In the expression:
        do sid <- genId
           let record = funcFrom sid a
           insert_ record
           pure sid
      In the second argument of ($), namely
        \ a
           -> do sid <- genId
                 let ...
                 ....
    |
190 |       insert_ record
    |       ^^^^^^^^^^^^^^

src/Data/Appendful/Persistent.hs:205:40: error:
    " Could not deduce (Database.Persist.Class.PersistEntity.SafeToInsert
                          clientRecord)
        arising from a use of insert
      from the context: (PersistEntity clientRecord,
                         PersistEntityBackend clientRecord ~ SqlBackend, MonadIO m)
        bound by the type signature for:
                   setupUnsyncedClientQuery :: forall clientRecord (m :: * -> *) a.
                                               (PersistEntity clientRecord,
                                                PersistEntityBackend clientRecord ~ SqlBackend,
                                                MonadIO m) =>
                                               (a -> clientRecord) -> [a] -> SqlPersistT m ()
        at src/Data/Appendful/Persistent.hs:(196,1)-(204,18)
      Possible fix:
        add (Database.Persist.Class.PersistEntity.SafeToInsert
               clientRecord) to the context of
          the type signature for:
            setupUnsyncedClientQuery :: forall clientRecord (m :: * -> *) a.
                                        (PersistEntity clientRecord,
                                         PersistEntityBackend clientRecord ~ SqlBackend,
                                         MonadIO m) =>
                                        (a -> clientRecord) -> [a] -> SqlPersistT m ()
    " In the first argument of (.), namely insert
      In the first argument of mapM_, namely (insert . func)
      In the expression: mapM_ (insert . func)
    |
205 | setupUnsyncedClientQuery func = mapM_ (insert . func)
    |                                        ^^^^^^

src/Data/Appendful/Persistent.hs:227:5: error:
    " Could not deduce (Database.Persist.Class.PersistEntity.SafeToInsert
                          clientRecord)
        arising from a use of insert_
      from the context: (PersistEntity clientRecord,
                         PersistEntityBackend clientRecord ~ SqlBackend, MonadIO m)
        bound by the type signature for:
                   setupClientQuery :: forall clientRecord (m :: * -> *) a sid.
                                       (PersistEntity clientRecord,
                                        PersistEntityBackend clientRecord ~ SqlBackend,
                                        MonadIO m) =>
                                       (a -> clientRecord)
                                       -> (sid -> a -> clientRecord)
                                       -> ClientStore (Key clientRecord) sid a
                                       -> SqlPersistT m ()
        at src/Data/Appendful/Persistent.hs:(210,1)-(220,18)
      Possible fix:
        add (Database.Persist.Class.PersistEntity.SafeToInsert
               clientRecord) to the context of
          the type signature for:
            setupClientQuery :: forall clientRecord (m :: * -> *) a sid.
                                (PersistEntity clientRecord,
                                 PersistEntityBackend clientRecord ~ SqlBackend, MonadIO m) =>
                                (a -> clientRecord)
                                -> (sid -> a -> clientRecord)
                                -> ClientStore (Key clientRecord) sid a
                                -> SqlPersistT m ()
    " In the expression: insert_ (funcS sid st)
      In the second argument of ($), namely
        \ (sid, st) -> insert_ (funcS sid st)
      In a stmt of a 'do' block:
        forM_ (M.toList clientStoreSynced)
          $ \ (sid, st) -> insert_ (funcS sid st)
    |
227 |     insert_ (funcS sid st)
    |     ^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-18572/appendful-persistent-0.0.0.0'
cabal: Error: some packages failed to install:
appendful-persistent-0.0.0.0-8RqxGUY36SL3zmIBHhJ1Ce failed during the building
phase. The exception was:
ExitFailure 1

Test log

No test log was submitted for this report.