<div dir="ltr">> <span style="font-size:14px">And my main question is the second one :</span><div style="font-size:14px">For pedagogic purposes I want to get the error -- Whats the (family of)<br></div><div style="font-size:14px">related options?</div><div style="font-size:14px"><br></div><div style="font-size:14px">This feature is called "type holes" introduced by GHC 7.8.1.</div><div style="font-size:14px">see <a href="https://wiki.haskell.org/GHC/Typed_holes">https://wiki.haskell.org/GHC/Typed_holes</a> in details.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-10 11:42 GMT+09:00 Rustom Mody <span dir="ltr"><<a href="mailto:rustompmody@gmail.com" target="_blank">rustompmody@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Mar 10, 2015 at 8:07 AM, Lyndon Maydwell <span dir="ltr"><<a href="mailto:maydwell@gmail.com" target="_blank">maydwell@gmail.com</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"><div>This looks like a great opportunity to try out the new holes functionality:<div><br></div><div><div>[Prelude] λ [] == _what</div><div><br></div><div><interactive>:3:7:</div><div>    Found hole ‘_what’ with type: [t0]</div><div>    Where: ‘t0’ is an ambiguous type variable</div><div>    Relevant bindings include it :: Bool (bound at <interactive>:3:1)</div><div>    In the second argument of ‘(==)’, namely ‘_what’</div><div>    In the expression: [] == _what</div><div>    In an equation for ‘it’: it = [] == _what</div></div><div><br></div><div><br></div><div>Looks like it defaults to [Bool]!</div><div><br></div><div>Correct me if I'm wrong :)</div><span dir="ltr"></span></div></blockquote><div><br></div></span><div>Thanks Lyndon.<br></div><div>But on my (debian testing) ghc I get:<br><br></div><div>Prelude> [] == _what<br><br><interactive>:2:7: Not in scope: `_what'<br><br></div><div>[ghc 7.6.3]<br><br></div><div>And my main question is the second one :<br></div><div>For pedagogic purposes I want to get the error -- Whats the (family of)<br></div><div>related options?<br></div><div> <br></div></div>
</div></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">山本悠滋<br>twitter: @igrep<br>Facebook: <a href="http://www.facebook.com/igrep" target="_blank">http://www.facebook.com/igrep</a><br>Google+: <a href="https://plus.google.com/u/0/+YujiYamamoto_igrep" target="_blank">https://plus.google.com/u/0/+YujiYamamoto_igrep</a></div>
</div>