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

Magnus Therning magnus at therning.org
Fri Apr 8 15:23:49 CEST 2011


On Fri, Apr 8, 2011 at 13:24, Henning Thielemann
<schlepptop at henning-thielemann.de> wrote:
> 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.

Indeed, but complex /= large :-)

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus



More information about the Haskell-Cafe mailing list