Intero: Failed to load interface for Lib

I am trying to configure my Haskero (Visual Studio Code extension using Intero) for my Haskell project, but I get the following error:

app\Main.hs:3:1: error:
   Failed to load interface for `Lib'
   Use -v to see a list of the files searched for.

Steps to play:

stack new project
cd project
stack build intero
stack exec intero
> :l app/Main.hs

app / Main.hs:

module Main where

import Lib

main :: IO ()
main = someFunc

src / Lib.hs:

module Lib
   ( someFunc
   ) where

someFunc :: IO ()
someFunc = putStrLn "someFunc"
+4
source share
2 answers

I have no experience with Haskero, but I can duplicate the problem with a simple old installation of Intero on a Linux machine.

, Intero stack exec stack ghci. , stack exec ghci stack ghci GHC (. stack ghci ).

stack exec intero :

stack ghci --with-ghc intero --no-build --no-load

.

( , stack exec intero , stack build , - stack ghci.)

+1

, Visual Studio Code.

Haskero :

stack ghci --with-ghc intero --no-build --no-load

Haskero , , VSCode. , IDE , . , , Haskero 1.3.1.

, , VSCode.

+2

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


All Articles