[Haskell-cafe] Fwd: extending Do notation
Alois Cochard
alois.cochard at gmail.com
Tue May 20 20:03:02 UTC 2014
I heard Idris' author saying during a talk saying that he had once a branch
which work even without the `!`.
That never got in because it scare users (according to Edwin for no
rational reason).
I don't know enough the details, but I think dependent typing (and the Eff
system) have probably a big role to play here... I mean Idris can go as far
as "inferring implementation" so the type system allow the compiler to
"understand" more and probably workaround ambiguity that Haskell might not
be able to solve now (or even never).
That's just a very naive view of the problem, which might be as well
erroneous so please correct me if I'm wrong.
On 20 May 2014 20:20, Evan Laforge <qdunkan at gmail.com> wrote:
> On Tue, May 20, 2014 at 12:09 PM, Kim-Ee Yeoh <ky3 at atamo.com> wrote:
> >
> > On Wed, May 21, 2014 at 1:38 AM, Evan Laforge <qdunkan at gmail.com> wrote:
> >>
> >> So perhaps the way forward is to find the old proposal (or make a new
> >> one, if it's gone), and see if Idris's solution applies to haskell.
> >
> >
> > Is Idris's solution written up anywhere? Mind sharing the link?
>
> It's briefly documented in the tutorial, see do notation:
>
> http://eb.host.cs.st-andrews.ac.uk/writings/idris-tutorial.pdf
>
> Looks like the key bit is "will lift expr as high as possible within
> the current scope".
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
--
*A\ois*
http://twitter.com/aloiscochard
http://github.com/aloiscochard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140520/77a4518c/attachment.html>
More information about the Haskell-Cafe
mailing list