mig
mig copied to clipboard
`mig-swagger-ui-0.1.0.1` fails to build (compile error)
Error:
Failed to build mig-swagger-ui-0.1.0.1.
Build log (
/home/user/.cache/cabal/logs/ghc-9.6.6/mig-swagger-ui-0.1.0.1-4af48f9593fb22b089e9038b08d7709cf739c13aa3df0f0ab2acc6a5a4d642cc.log
):
Configuring library for mig-swagger-ui-0.1.0.1...
Preprocessing library for mig-swagger-ui-0.1.0.1...
Building library for mig-swagger-ui-0.1.0.1...
[1 of 2] Compiling Mig.Swagger ( src/Mig/Swagger.hs, dist/build/Mig/Swagger.o, dist/build/Mig/Swagger.dyn_o )
src/Mig/Swagger.hs:117:18: error: [GHC-83865]
• Couldn't match type: template-haskell-2.20.0.0:Language.Haskell.TH.Syntax.Code
template-haskell-2.20.0.0:Language.Haskell.TH.Syntax.Q
[(FilePath, ByteString)]
with: template-haskell-2.20.0.0:Language.Haskell.TH.Syntax.Q
template-haskell-2.20.0.0:Language.Haskell.TH.Syntax.Exp
Expected: template-haskell-2.20.0.0:Language.Haskell.TH.Lib.Internal.ExpQ
Actual: template-haskell-2.20.0.0:Language.Haskell.TH.Syntax.Code
template-haskell-2.20.0.0:Language.Haskell.TH.Syntax.Q
[(FilePath, ByteString)]
• In the expression: embedRecursiveDir "swagger-ui-dist-5.0.0"
In the untyped splice: $(embedRecursiveDir "swagger-ui-dist-5.0.0")
|
117 | swaggerFiles = $(embedRecursiveDir "swagger-ui-dist-5.0.0")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2 of 2] Compiling Paths_mig_swagger_ui ( dist/build/autogen/Paths_mig_swagger_ui.hs, dist/build/Paths_mig_swagger_ui.o, dist/build/Paths_mig_swagger_ui.dyn_o )
Error: [Cabal-7125]
Failed to build mig-swagger-ui-0.1.0.1 (which is required by exe:server from myproject-0.1.0.0). See the build log above for details.
Build log:
Configuring library for mig-swagger-ui-0.1.0.1...
Preprocessing library for mig-swagger-ui-0.1.0.1...
Building library for mig-swagger-ui-0.1.0.1...
[1 of 2] Compiling Mig.Swagger ( src/Mig/Swagger.hs, dist/build/Mig/Swagger.o, dist/build/Mig/Swagger.dyn_o )
src/Mig/Swagger.hs:117:18: error: [GHC-83865]
• Couldn't match type: template-haskell-2.20.0.0:Language.Haskell.TH.Syntax.Code
template-haskell-2.20.0.0:Language.Haskell.TH.Syntax.Q
[(FilePath, ByteString)]
with: template-haskell-2.20.0.0:Language.Haskell.TH.Syntax.Q
template-haskell-2.20.0.0:Language.Haskell.TH.Syntax.Exp
Expected: template-haskell-2.20.0.0:Language.Haskell.TH.Lib.Internal.ExpQ
Actual: template-haskell-2.20.0.0:Language.Haskell.TH.Syntax.Code
template-haskell-2.20.0.0:Language.Haskell.TH.Syntax.Q
[(FilePath, ByteString)]
• In the expression: embedRecursiveDir "swagger-ui-dist-5.0.0"
In the untyped splice: $(embedRecursiveDir "swagger-ui-dist-5.0.0")
|
117 | swaggerFiles = $(embedRecursiveDir "swagger-ui-dist-5.0.0")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2 of 2] Compiling Paths_mig_swagger_ui ( dist/build/autogen/Paths_mig_swagger_ui.hs, dist/build/Paths_mig_swagger_ui.o, dist/build/Paths_mig_swagger_ui.dyn_o )
Other information:
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.6.6
$ cabal --version
cabal-install version 3.12.1.0
compiled using version 3.12.1.0 of the Cabal library