<div dir="ltr"><div><div><div><div><div class="gmail_quote">On 29 October 2013 22:36, martin <span dir="ltr"><<a href="mailto:martin.drautzburg@web.de" target="_blank">martin.drautzburg@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


is there a way to determine types of symbols which are not toplevel but inside a function? <br></blockquote></div><br></div><div>Not at present without transformation. There are two reasonably reliable approaches:<br><br>


Insert noisy holes/make intentional type errors: <a href="http://ghc.haskell.org/trac/ghc/wiki/Holes#Insertingdeliberatetypeerrors" target="_blank">http://ghc.haskell.org/trac/ghc/wiki/Holes#Insertingdeliberatetypeerrors</a><br>

<br></div>
<div>Implicit parameters: <a href="http://ghc.haskell.org/trac/ghc/wiki/Holes#Implicitparameters" target="_blank">http://ghc.haskell.org/trac/ghc/wiki/Holes#Implicitparameters</a><br><br></div><div>Holes will land in GHC to support this explicitly. I don't know what version of GHC has/will have this.<br>


<br></div><div>Alternatively, you can use ghc-mod (<a href="https://github.com/kazu-yamamoto/ghc-mod">https://github.com/kazu-yamamoto/ghc-mod</a>) which, if you can get it to work, can tell you the types of sub-expressions.<br>

<br></div><div>Lastly, the next version of the FP Complete IDE gives you types of sub-expressions just by clicking on them or selecting them out of the box. <br>
</div></div></div></div></div>