【发布时间】:2015-05-01 16:03:02
【问题描述】:
是否可以使用 GHCI 找到 where 语句中定义的函数类型?
例如,考虑这个函数:
myFunction a b c = case result of
2 -> ...
where
subFunctA = ...
_ -> ...
where
subFunctB = ...
subFunctC = ...
myFunction 的类型可以通过:t myFunction 找到。
是否可以通过 GHCI 找到 subFunctA、subFuncB 和 subFunctC 的类型?
【问题讨论】: