Failed: stack install bond
Summary
Write a brief description of the issue.
stack install bond
failed on Ubuntu 22.04.2
Steps to reproduce
Created new WSL2 Ubuntu 22.04.2 LTS setup
Installed Haskell with curl -sSL https://get.haskellstack.org/ | sh
stack --version
Version 2.9.3, Git revision 6cf638947a863f49857f9cfbf72a38a48b183e7e x86_64 hpack-0.35.1
stack install bond
bond> Building library for bond-0.12.1.0..
bond> [ 1 of 29] Compiling Language.Bond.Syntax.Types
bond> [ 2 of 29] Compiling Language.Bond.Syntax.JSON
bond>
bond> /tmp/stack-04c79d0d7ac206e0/bond-0.12.1.0/src/Language/Bond/Syntax/JSON.hs:84:19: error:
bond> • No instance for (FromJSON TypeParam) arising from a use of ‘.:’
bond> • In the second argument of ‘(<$>)’, namely ‘o .: "value"’
bond> In the expression: BT_TypeParam <$> o .: "value"
bond> In a case alternative:
bond> String "parameter" -> BT_TypeParam <$> o .: "value"
bond> |
bond> 84 | o .: "value"
bond> |
...
bond> /tmp/stack-04c79d0d7ac206e0/bond-0.12.1.0/src/Language/Bond/Syntax/JSON.hs:264:26: error:
bond> • No instance for (ToJSON Declaration) arising from a use of ‘.=’
bond> • In the expression: "declarations" .= bondDeclarations
bond> In the first argument of ‘object’, namely
bond> ‘["imports" .= bondImports, "namespaces" .= bondNamespaces,
bond> "declarations" .= bondDeclarations]’
bond> In the expression:
bond> object
bond> ["imports" .= bondImports, "namespaces" .= bondNamespaces,
bond> "declarations" .= bondDeclarations]
bond> |
bond> 264 | , "declarations" .= bondDeclarations
bond> | ^^
Error: [S-7282]
Stack failed to execute the build plan.
While executing the build plan, Stack encountered the following errors:
[S-7011]
While building package bond-0.12.1.0 (scroll up to its section to see the error) using:
/home/achinbha/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_SvXsv1f__3.6.3.0_ghc-9.2.7 --verbose=1 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.6.3.0 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Please provide a set of concrete steps to reproduce the issue.
Expected behavior
What do you expect the reproducer described above to do?
Install bond and a valid gbc binary is available in bin path.
Environment
- GHC version used: The Glorious Glasgow Haskell Compilation System, version 8.8.4
Optional:
- Operating System: Ubuntu 22.04.2 LTS
- System Architecture: x64