0

what does this message means and how i can solve it

Couldn't figure out what GHC version the project is using:
    /home/wejden/.config/Code/User/globalStorage/haskell.haskell/haskell-language-server-wrapper-1.1.0-linux --project-ghc-version exited with exit code 1:

Module "/home/wejden/alpha/a" is loaded by Cradle: Cradle {cradleRootDir = "/home/wejden/alpha", cradleOptsProg = CradleAction: Stack}
Failed to get project GHC version:CradleError {cradleErrorDependencies = [], cradleErrorExitCode = ExitFailure 1, cradleErrorStderr = ["Error when calling stack exec --silent ghc -- --numeric-version","","/home/wejden/alpha/package.yaml: Error while parsing $.executables.when - expected Object, but encountered Arrayn"]}

Sorry I fixed that , I was adding this to the executables section :

when:
- condition: false
  other-modules: Paths_alpha 

But I’m having another error now , I’m new to haskell and I’m trying to set it up with VS CODE:

Failed to parse result of calling stack Using main module: 1. Package

alpha' component alpha:exe:alpha-exe with main-is file: /home/wejden/alpha/app/Main.hs Building all executables for 
alpha’ once. After a successful build of all of them, only specified executables will be rebuilt. alpha> configure (lib + exe) Configuring alpha-0.1.0.0… alpha> initial-build-steps (lib + exe) The following GHC options are incompatible with GHCi and have not been passed to it: -threaded Configuring GHCi with the following packages: alpha /tmp/haskell-stack-ghci/d508a854: createDirectory: permission denied (Permission denied)

package.yaml file :

    name:                alpha
    version:             0.1.0.0
    github:              "githubuser/alpha"
    license:             BSD3
    author:              "Author name here"
    maintainer:          "[email protected]"
    copyright:           "2021 Author name here"
    
    extra-source-files:
    - README.md
    - ChangeLog.md
    
    # Metadata used when publishing your package
    # synopsis:            Short description of your package
    # category:            Web
    
    # To avoid duplicated efforts in documentation and dealing with the
    # complications of embedding Haddock markup inside cabal files, it is
    # common to point users to the README.md file.
    description:         Please see the README on GitHub at <https://github.com/githubuser/alpha#readme>
    
    dependencies:
    - base >= 4.7 && < 5
    
    library:
      when:
      - condition: false
        other-modules: Paths_alpha
      source-dirs: src
    
      
     
    
    executables:
      alpha-exe:
        main:                Main.hs
        source-dirs:         app
        ghc-options:
        - -threaded
        - -rtsopts
        - -with-rtsopts=-N
        dependencies:
        - alpha
    tests:
      alpha-test:
        main:                Spec.hs
        source-dirs:         test
        ghc-options:
        - -threaded
        - -rtsopts
        - -with-rtsopts=-N
      
        dependencies:
      
          - alpha
     
Anonymous Asked question May 14, 2021