我正在尝试为我的 Haskell 项目设置我的 Haskero(使用 Intero 的 Visual Studio 代码扩展),但出现以下错误:
app\Main.hs:3:1: error:
Failed to load interface for `Lib'
Use -v to see a list of the files searched for.
重现步骤:
stack new project
cd project
stack build intero
stack exec intero
> :l app/Main.hs
应用程序/Main.hs:
module Main where
import Lib
main :: IO ()
main = someFunc
src/Lib.hs:
module Lib
( someFunc
) where
someFunc :: IO ()
someFunc = putStrLn "someFunc"