Problems with Haskell Yesod

can someone help me ?! I work on the Haskell Yesod website for college in the C9 workspace, I already installed the Yesod command and update cabal, but when I try to execute the "stack build" command, this pathetic error message appears:

 $ stack build

aulahaskell-0.0.0: build (lib + exe)
Preprocessing library aulahaskell-0.0.0...
[ 7 of 13] Compiling Handler.Cliente  ( src/Handler/Cliente.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/Handler/Cliente.o )

/home/ubuntu/workspace/web2017/src/Handler/Cliente.hs:10:1: error:
    Failed to load interface for ‘Network.HTTP.Types.Status’
    It is a member of the hidden packagehttp-types-0.9.1’.
    Perhaps you need to addhttp-types’ to the build-depends in your .cabal file.
    Use -v to see a list of the files searched for.

--  While building package aulahaskell-0.0.0 using:
      /home/ubuntu/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.2.0 build lib:aulahaskell exe:aulahaskell --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
Seriously, I tried a bunch of things to fix this, but nothing works = S
+4
source share
3 answers

Just read the error message carefully:

Failed to load interface for ‘Network.HTTP.Types.Status’
It is a member of the hidden packagehttp-types-0.9.1’.
Perhaps you need to addhttp-types’ to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.

Line. You may need to add the "http types depending on the assembly" in your .cabal file to find out what to do: you should add the http types in the build-depends: section of the aulahaskell file in your bondage file.

If this does not help, send your file to the box office.

+5

Yesod? :

stack new my-yesod-project yesod-(your database here)
cd my-yesod-project
stack build
+1

Thanks guys! This was a problem with the way I started the project, some files were not installed on my workspace, so I delete the files, reinstall Yesod and cabal, create a new version after the following steps: https://www.yesodweb.com/page/ quickstart

0
source

Source: https://habr.com/ru/post/1689264/


All Articles