【发布时间】:2015-06-16 08:29:54
【问题描述】:
我在构建时遇到了这个错误:
dist/package.conf.inplace:
inappropriate type
FAILED DURING THE BUILDING PHASE. The **exception** was: ExitFailure 1
我如何使用subRegex 在包中 Text.Regex?
我写过:
import Text.Regex.Posix
但是我收到了这个错误:
_.hs:13:5: Not in scope: ‘subRegex’
_.hs:13:15:
Not in scope: ‘mkRegex’
Perhaps you meant ‘makeRegex’ (imported from Text.Regex.Posix)
所以,我去了Text.Regex的[page][1],上面写着:
在
Text.Regex.Posix中使用POSIX正则表达式接口。
那么为什么这些函数不在范围内呢?
【问题讨论】:
-
注意
Text.Regex不是一个包。它是 regex-compat 包中的一个模块。