ghci是否支持处理模块?

时间:2020-10-26 12:24:17

标签: haskell ghci

我有一个名为model.hs的文件,其内容为

module Model (Foo) where

data Foo = Yellow | Red | Blue deriving Show

我还有一个名为sim.hs的文件,试图导入Foo。该文件的内容是

module Sim where

import Model.Foo

我在终端中键入ghci,然后执行:load model.hs,文件将正确加载。现在,当我键入:load sim.hs时,出现错误Could not find module Model



注意:我没有安装阴谋集团/堆栈。

0 个答案:

没有答案