<div><div dir="auto">Which is safe as long as the GC ETC still can walk it correctly! And that you’re not rereferencing an Int as a list of A :)</div></div><div><br><div class="gmail_quote"><div dir="ltr">On Sat, Nov 24, 2018 at 1:24 AM Dan Burton <<a href="mailto:danburton.email@gmail.com">danburton.email@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>"force the compiler to think some values are of some types"<div dir="auto"><br></div><div dir="auto">Sounds like a job for unsafeCoerce.</div></div></div><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 22, 2018, 23:12 ducis <<a href="mailto:ducis_cn@126.com" target="_blank">ducis_cn@126.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>We know that the type system is now a second language where you spec formal requirements and let the compiler solve it, kinda like logic programming.<br>But sometimes I knew something is correct or at least willing to take the risk of runtime errors, but the typechecker is not (yet) able to figure it out.<br>In this case is it possible to somehow insert (regular haskell) code into the typechecker and force the compiler to think some values are of some types,<br>rather than waiting for or inventing some formally correct solution, which may be fundamentally very difficult?<br><br></div></div>_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div></div></div>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div></div>