Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mig-swagger-ui-0.1.0.1 fails to build (compile error) #85

Open
msaifi03 opened this issue Jan 12, 2025 · 0 comments
Open

mig-swagger-ui-0.1.0.1 fails to build (compile error) #85

msaifi03 opened this issue Jan 12, 2025 · 0 comments

Comments

@msaifi03
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant