Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
本页用途
$ ghci -XNoMonomorphismRestriction
启动haskell解释器。
XNoMonomorphismRestriction开关是什么意思?
XNoMonomorphismRestriction
它关闭了Monomorphism 限制,该限制将未使用“函数表示法”¹定义的值限制为具有非多态类型。
¹ “不使用函数表示法”是指它们被定义为foo = somethingand not foo bar = something,即定义不包含显式参数。
foo = something
foo bar = something