[Haskell-cafe] Is there a way to find out the type inferred for a local function inside another function? :)

Henning Thielemann schlepptop at henning-thielemann.de
Fri Apr 8 14:24:48 CEST 2011


Magnus Therning schrieb:
> AFAIK there is no way to do that, thouhg scion[1] may offer it.
> 
> Personally I develop more complex local functions at the top-level,
> and once I'm happy with it I perform some re-factoring and move it in.

I would not write large local functions at all. I would leave them
top-level but do not export them. This also allows to test them from GHCi.




More information about the Haskell-Cafe mailing list