Build #2 for bond-0.13.0.0

[all reports]

Package bond-0.13.0.0
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2024-07-15 16:03:43.176224268 UTC
Compiler ghc-9.6.3
OS linux
Arch x86_64
Dependencies aeson-2.2.3.0, base-4.18.1.0, bytestring-0.11.5.2, filepath-1.4.100.4, megaparsec-9.6.1, mtl-2.3.1, scientific-0.3.8.0, shakespeare-2.1.0.1, text-2.0.2, unordered-containers-0.2.20, aeson-2.2.3.0, async-2.2.5, base-4.18.1.0, bytestring-0.11.5.2, cmdargs-0.10.22, directory-1.3.8.1, filepath-1.4.100.4, megaparsec-9.6.1, monad-loops-0.4.3, mtl-2.3.1, process-1.6.17.0, scientific-0.3.8.0, shakespeare-2.1.0.1, text-2.0.2, unordered-containers-0.2.20
Flags -warningsaserrors

Code Coverage

No Code Coverage was submitted for this report.

Build log

[view raw]

Resolving dependencies...
Starting     StateVar-1.2.2
Starting     OneTuple-0.4.2
Starting     assoc-1.1.1
Starting     character-ps-0.1
Starting     cmdargs-0.10.22
Starting     dlist-1.0
Starting     generically-0.1.1
Starting     file-embed-0.0.16.0
Starting     indexed-traversable-0.1.4
Starting     monad-loops-0.4.3
Starting     parser-combinators-1.3.0
Starting     os-string-2.0.6
Starting     primitive-0.9.0.0
Starting     tagged-0.8.8
Starting     th-compat-0.1.5
Starting     vector-stream-0.1.0.1
Starting     transformers-compat-0.7.2
Starting     base-orphans-0.9.2
Starting     integer-logarithms-1.0.3.1
Starting     blaze-builder-0.4.2.3
Starting     th-abstraction-0.7.0.0
Starting     splitmix-0.1.0.5
Building     indexed-traversable-0.1.4
Building     file-embed-0.0.16.0
Building     StateVar-1.2.2
Building     character-ps-0.1
Building     assoc-1.1.1
Building     parser-combinators-1.3.0
Building     dlist-1.0
Building     OneTuple-0.4.2
Building     th-compat-0.1.5
Building     monad-loops-0.4.3
Building     generically-0.1.1
Building     primitive-0.9.0.0
Building     cmdargs-0.10.22
Building     base-orphans-0.9.2
Building     tagged-0.8.8
Building     integer-logarithms-1.0.3.1
Building     vector-stream-0.1.0.1
Building     splitmix-0.1.0.5
Building     os-string-2.0.6
Building     transformers-compat-0.7.2
Building     blaze-builder-0.4.2.3
Building     th-abstraction-0.7.0.0
Completed    assoc-1.1.1
Completed    generically-0.1.1
Completed    monad-loops-0.4.3
Completed    parser-combinators-1.3.0
Completed    OneTuple-0.4.2
Completed    integer-logarithms-1.0.3.1
Completed    StateVar-1.2.2
Starting     contravariant-1.5.5
Completed    tagged-0.8.8
Completed    splitmix-0.1.0.5
Starting     random-1.2.1.2
Building     contravariant-1.5.5
Completed    th-compat-0.1.5
Starting     network-uri-2.6.4.2
Completed    transformers-compat-0.7.2
Building     random-1.2.1.2
Completed    dlist-1.0
Completed    character-ps-0.1
Building     network-uri-2.6.4.2
Completed    file-embed-0.0.16.0
Completed    vector-stream-0.1.0.1
Completed    indexed-traversable-0.1.4
Completed    base-orphans-0.9.2
Starting     distributive-0.6.2.1
Completed    th-abstraction-0.7.0.0
Starting     th-lift-0.8.4
Completed    blaze-builder-0.4.2.3
Starting     blaze-markup-0.8.3.0
Building     distributive-0.6.2.1
Building     th-lift-0.8.4
Building     blaze-markup-0.8.3.0
Completed    os-string-2.0.6
Starting     hashable-1.4.7.0
Building     hashable-1.4.7.0
Completed    contravariant-1.5.5
Completed    distributive-0.6.2.1
Starting     comonad-5.0.8
Completed    th-lift-0.8.4
Building     comonad-5.0.8
Completed    network-uri-2.6.4.2
Completed    primitive-0.9.0.0
Starting     integer-conversion-0.1.1
Starting     vector-0.13.1.0
Completed    blaze-markup-0.8.3.0
Starting     blaze-html-0.9.2.0
Building     integer-conversion-0.1.1
Building     vector-0.13.1.0
Building     blaze-html-0.9.2.0
Completed    random-1.2.1.2
Starting     QuickCheck-2.15.0.1
Building     QuickCheck-2.15.0.1
Completed    cmdargs-0.10.22
Completed    hashable-1.4.7.0
Starting     uuid-types-1.0.6
Starting     these-1.2.1
Starting     unordered-containers-0.2.20
Starting     data-fix-0.3.4
Starting     text-short-0.1.6
Starting     case-insensitive-1.2.1.0
Starting     async-2.2.5
Starting     scientific-0.3.8.0
Starting     time-compat-1.9.7
Building     uuid-types-1.0.6
Building     unordered-containers-0.2.20
Building     these-1.2.1
Building     text-short-0.1.6
Building     async-2.2.5
Building     data-fix-0.3.4
Building     scientific-0.3.8.0
Building     case-insensitive-1.2.1.0
Building     time-compat-1.9.7
Completed    integer-conversion-0.1.1
Completed    comonad-5.0.8
Starting     bifunctors-5.6.2
Building     bifunctors-5.6.2
Completed    async-2.2.5
Completed    uuid-types-1.0.6
Completed    case-insensitive-1.2.1.0
Completed    data-fix-0.3.4
Completed    time-compat-1.9.7
Starting     text-iso8601-0.1.1
Completed    text-short-0.1.6
Completed    these-1.2.1
Starting     strict-0.5.1
Completed    scientific-0.3.8.0
Building     text-iso8601-0.1.1
Starting     megaparsec-9.6.1
Building     strict-0.5.1
Building     megaparsec-9.6.1
Completed    blaze-html-0.9.2.0
Completed    unordered-containers-0.2.20
Completed    QuickCheck-2.15.0.1
Completed    text-iso8601-0.1.1
Completed    bifunctors-5.6.2
Starting     semigroupoids-6.0.1
Building     semigroupoids-6.0.1
Completed    strict-0.5.1
Completed    megaparsec-9.6.1
Completed    vector-0.13.1.0
Starting     indexed-traversable-instances-0.1.2
Building     indexed-traversable-instances-0.1.2
Completed    semigroupoids-6.0.1
Completed    indexed-traversable-instances-0.1.2
Starting     witherable-0.5
Starting     semialign-1.3.1
Building     witherable-0.5
Building     semialign-1.3.1
Completed    semialign-1.3.1
Completed    witherable-0.5
Starting     aeson-2.2.3.0
Building     aeson-2.2.3.0
Completed    aeson-2.2.3.0
Starting     shakespeare-2.1.0.1
Building     shakespeare-2.1.0.1
Completed    shakespeare-2.1.0.1
Starting     bond-0.13.0.0
Building     bond-0.13.0.0
Failed to install bond-0.13.0.0
Build log ( /home/builder/.cabal/logs/ghc-9.6.3/bond-0.13.0.0-L2HNfmnWw9u80dhPBoWhaQ.log ):
cabal: Entering directory '/tmp/cabal-tmp-3336561/bond-0.13.0.0'
Configuring bond-0.13.0.0...
Preprocessing library for bond-0.13.0.0..
Building library for bond-0.13.0.0..
[ 1 of 26] Compiling Language.Bond.Syntax.Types ( src/Language/Bond/Syntax/Types.hs, dist/build/Language/Bond/Syntax/Types.o, dist/build/Language/Bond/Syntax/Types.dyn_o )
[ 2 of 26] Compiling Language.Bond.Syntax.JSON ( src/Language/Bond/Syntax/JSON.hs, dist/build/Language/Bond/Syntax/JSON.o, dist/build/Language/Bond/Syntax/JSON.dyn_o )

src/Language/Bond/Syntax/JSON.hs:84:19: error: [GHC-39999]
    " No instance for FromJSON TypeParam arising from a use of .:
    " In the second argument of (<$>), namely o .: "value"
      In the expression: BT_TypeParam <$> o .: "value"
      In a case alternative:
          String "parameter" -> BT_TypeParam <$> o .: "value"
   |
84 |                 o .: "value"
   |                   ^^

src/Language/Bond/Syntax/JSON.hs:86:19: error: [GHC-39999]
    " No instance for FromJSON Declaration arising from a use of .:
    " In the second argument of (<$>), namely o .: "declaration"
      In the first argument of (<*>), namely
        BT_UserDefined <$> o .: "declaration"
      In the expression:
        BT_UserDefined <$> o .: "declaration" <*> o .:? "arguments" .!= []
   |
86 |                 o .: "declaration" <*>
   |                   ^^

src/Language/Bond/Syntax/JSON.hs:147:19: error: [GHC-39999]
    " No instance for ToJSON TypeParam arising from a use of .=
    " In the expression: "value" .= p
      In the first argument of object, namely
        ["type" .= String "parameter", "value" .= p]
      In the expression:
        object ["type" .= String "parameter", "value" .= p]
    |
147 |         , "value" .= p
    |                   ^^

src/Language/Bond/Syntax/JSON.hs:151:25: error: [GHC-39999]
    " No instance for ToJSON Declaration arising from a use of .=
    " In the expression: "declaration" .= decl
      In the first argument of object, namely
        ["type" .= String "user", "declaration" .= decl]
      In the expression:
        object ["type" .= String "user", "declaration" .= decl]
    |
151 |         , "declaration" .= decl
    |                         ^^

src/Language/Bond/Syntax/JSON.hs:203:11: error: [GHC-39999]
    " No instance for FromJSON Attribute arising from a use of .:?
    " In the first argument of (.!=), namely
        o .:? "fieldAttributes"
      In the second argument of (<$>), namely
        o .:? "fieldAttributes" .!= []
      In the first argument of (<*>), namely
        Field <$> o .:? "fieldAttributes" .!= []
    |
203 |         o .:? "fieldAttributes" .!= [] <*>
    |           ^^^

src/Language/Bond/Syntax/JSON.hs:205:11: error: [GHC-39999]
    " No instance for FromJSON Modifier arising from a use of .:?
    " In the first argument of (.!=), namely o .:? "fieldModifier"
      In the second argument of (<*>), namely
        o .:? "fieldModifier" .!= Optional
      In the first argument of (<*>), namely
        Field <$> o .:? "fieldAttributes" .!= [] <*> o .: "fieldOrdinal"
           <*> o .:? "fieldModifier" .!= Optional
    |
205 |         o .:? "fieldModifier" .!= Optional <*>
    |           ^^^

src/Language/Bond/Syntax/JSON.hs:215:29: error: [GHC-39999]
    " No instance for ToJSON Attribute arising from a use of .=
    " In the expression: "fieldAttributes" .= fieldAttributes f
      In the first argument of object, namely
        ["fieldAttributes" .= fieldAttributes f,
          "fieldOrdinal" .= fieldOrdinal f,
          "fieldModifier" .= fieldModifier f, "fieldType" .= fieldType f,
          ....]
      In the expression:
        object
          ["fieldAttributes" .= fieldAttributes f,
           "fieldOrdinal" .= fieldOrdinal f,
           "fieldModifier" .= fieldModifier f, "fieldType" .= fieldType f,
           ....]
    |
215 |         [ "fieldAttributes" .= fieldAttributes f
    |                             ^^

src/Language/Bond/Syntax/JSON.hs:217:27: error: [GHC-39999]
    " No instance for ToJSON Modifier arising from a use of .=
    " In the expression: "fieldModifier" .= fieldModifier f
      In the first argument of object, namely
        ["fieldAttributes" .= fieldAttributes f,
          "fieldOrdinal" .= fieldOrdinal f,
          "fieldModifier" .= fieldModifier f, "fieldType" .= fieldType f,
          ....]
      In the expression:
        object
          ["fieldAttributes" .= fieldAttributes f,
           "fieldOrdinal" .= fieldOrdinal f,
           "fieldModifier" .= fieldModifier f, "fieldType" .= fieldType f,
           ....]
    |
217 |         , "fieldModifier" .= fieldModifier f
    |                           ^^

src/Language/Bond/Syntax/JSON.hs:235:15: error: [GHC-39999]
    " No instance for FromJSON Language arising from a use of .:?
    " In the second argument of (<$>), namely v .:? "language"
      In the first argument of (<*>), namely
        Namespace <$> v .:? "language"
      In the expression: Namespace <$> v .:? "language" <*> v .: "name"
    |
235 |             v .:? "language" <*>
    |               ^^^

src/Language/Bond/Syntax/JSON.hs:246:22: error: [GHC-39999]
    " No instance for ToJSON Language arising from a use of .=
    " In the expression: "language" .= nsLanguage
      In the first argument of object, namely
        ["language" .= nsLanguage, "name" .= nsName]
      In the expression:
        object ["language" .= nsLanguage, "name" .= nsName]
    |
246 |         [ "language" .= nsLanguage
    |                      ^^

src/Language/Bond/Syntax/JSON.hs:253:15: error: [GHC-39999]
    " No instance for FromJSON Import arising from a use of .:
    " In the second argument of (<$>), namely v .: "imports"
      In the first argument of (<*>), namely Bond <$> v .: "imports"
      In the first argument of (<*>), namely
        Bond <$> v .: "imports" <*> v .: "namespaces"
    |
253 |             v .: "imports" <*>
    |               ^^

src/Language/Bond/Syntax/JSON.hs:255:15: error: [GHC-39999]
    " No instance for FromJSON Declaration arising from a use of .:
    " In the second argument of (<*>), namely v .: "declarations"
      In the expression:
        Bond <$> v .: "imports" <*> v .: "namespaces"
          <*> v .: "declarations"
      In an equation for parseJSON:
          parseJSON (Object v)
            = Bond <$> v .: "imports" <*> v .: "namespaces"
                <*> v .: "declarations"
    |
255 |             v .: "declarations"
    |               ^^

src/Language/Bond/Syntax/JSON.hs:262:21: error: [GHC-39999]
    " No instance for ToJSON Import arising from a use of .=
    " In the expression: "imports" .= bondImports
      In the first argument of object, namely
        ["imports" .= bondImports, "namespaces" .= bondNamespaces,
          "declarations" .= bondDeclarations]
      In the expression:
        object
          ["imports" .= bondImports, "namespaces" .= bondNamespaces,
           "declarations" .= bondDeclarations]
    |
262 |         [ "imports" .= bondImports
    |                     ^^

src/Language/Bond/Syntax/JSON.hs:264:26: error: [GHC-39999]
    " No instance for ToJSON Declaration arising from a use of .=
    " In the expression: "declarations" .= bondDeclarations
      In the first argument of object, namely
        ["imports" .= bondImports, "namespaces" .= bondNamespaces,
          "declarations" .= bondDeclarations]
      In the expression:
        object
          ["imports" .= bondImports, "namespaces" .= bondNamespaces,
           "declarations" .= bondDeclarations]
    |
264 |         , "declarations" .= bondDeclarations
    |                          ^^
[ 3 of 26] Compiling Language.Bond.Lexer ( src/Language/Bond/Lexer.hs, dist/build/Language/Bond/Lexer.o, dist/build/Language/Bond/Lexer.dyn_o )
[ 4 of 26] Compiling Language.Bond.Codegen.CustomMapping ( src/Language/Bond/Codegen/CustomMapping.hs, dist/build/Language/Bond/Codegen/CustomMapping.o, dist/build/Language/Bond/Codegen/CustomMapping.dyn_o )
[ 5 of 26] Compiling Language.Bond.Util ( src/Language/Bond/Util.hs, dist/build/Language/Bond/Util.o, dist/build/Language/Bond/Util.dyn_o )
[ 6 of 26] Compiling Language.Bond.Syntax.Util ( src/Language/Bond/Syntax/Util.hs, dist/build/Language/Bond/Syntax/Util.o, dist/build/Language/Bond/Syntax/Util.dyn_o )
[ 7 of 26] Compiling Language.Bond.Syntax.Internal ( src/Language/Bond/Syntax/Internal.hs, dist/build/Language/Bond/Syntax/Internal.o, dist/build/Language/Bond/Syntax/Internal.dyn_o )
[ 8 of 26] Compiling Language.Bond.Parser ( src/Language/Bond/Parser.hs, dist/build/Language/Bond/Parser.o, dist/build/Language/Bond/Parser.dyn_o )

src/Language/Bond/Parser.hs:81:13: error: [GHC-88464]
    Variable not in scope:
      void
        :: StateT
             Symbols (ParsecT Void String (ReaderT Environment IO)) Bond
           -> StateT Symbols (ParsecT Void String (ReaderT Environment IO)) ()
    Suggested fix:
      Perhaps use data constructor Void (imported from Language.Bond.Syntax.Types)
   |
81 |             void $ local (\e -> e { currentFile = path }) bond
   |             ^^^^

src/Language/Bond/Parser.hs:476:19: error:
    " The constructor State should have 4 arguments, but has been given 3
    " In the pattern: State s o (PosState i o' _ t l)
      In an equation for setPos:
          setPos (State s o (PosState i o' _ t l))
            = State s o (PosState i o' src t l)
      In an equation for setSourcePos:
          setSourcePos src
            = updateParserState setPos
            where
                setPos (State s o (PosState i o' _ t l))
                  = State s o (PosState i o' src t l)
    |
476 |     where setPos (State s o (PosState i o' _ t l)) =  State s o (PosState i o' src t l)
    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 9 of 26] Compiling Language.Bond.Codegen.TypeMapping ( src/Language/Bond/Codegen/TypeMapping.hs, dist/build/Language/Bond/Codegen/TypeMapping.o, dist/build/Language/Bond/Codegen/TypeMapping.dyn_o )

src/Language/Bond/Codegen/TypeMapping.hs:264:10: error: [GHC-88464]
    Variable not in scope:
      liftM2 :: (a0 -> a0 -> a0) -> m r -> m r -> m r
    Suggested fix:
      Perhaps use one of these:
        liftA2 (imported from Prelude),
        lift (imported from Control.Monad.Reader),
        liftA (imported from Control.Applicative)
    |
264 | (<<>>) = liftM2 (<>)
    |          ^^^^^^

src/Language/Bond/Codegen/TypeMapping.hs:269:11: error: [GHC-88464]
    Variable not in scope: liftM :: (r -> r) -> m r -> m r
    Suggested fix:
      Perhaps use one of these:
        lift (imported from Control.Monad.Reader),
        liftA (imported from Control.Applicative)
    |
269 | (<>>) x = liftM (x <>)
    |           ^^^^^

src/Language/Bond/Codegen/TypeMapping.hs:274:13: error: [GHC-88464]
    Variable not in scope: liftM :: (r -> r) -> m r -> m r
    Suggested fix:
      Perhaps use one of these:
        lift (imported from Control.Monad.Reader),
        liftA (imported from Control.Applicative)
    |
274 | (<<>) x y = liftM (<> y) x
    |             ^^^^^
[11 of 26] Compiling Paths_bond       ( dist/build/autogen/Paths_bond.hs, dist/build/Paths_bond.o, dist/build/Paths_bond.dyn_o )
[12 of 26] Compiling Language.Bond.Codegen.Util ( src/Language/Bond/Codegen/Util.hs, dist/build/Language/Bond/Codegen/Util.o, dist/build/Language/Bond/Codegen/Util.dyn_o )
cabal: Leaving directory '/tmp/cabal-tmp-3336561/bond-0.13.0.0'
Error: cabal: Some packages failed to install:
bond-0.13.0.0-L2HNfmnWw9u80dhPBoWhaQ failed during the building phase. The
exception was:
ExitFailure 1

Test log

No test log was submitted for this report.