【发布时间】:2019-09-22 12:47:35
【问题描述】:
我需要在一个 Haskell 文件中导出两个模块。现在,我有
module name (important,functions) where
module nameForTesting where
-- the code is here
但是,它给了我这个错误:
filename.hs:5:1: error: parse error on input ‘module’
我该如何解决这个问题?
【问题讨论】:
-
一个文件属于一个模块。但是,您可以重新导入一个模块,然后导出一个子集。
-
我不确定我是否理解。你能解释一下你的意思吗?