[Haskell-cafe] Fwd: constraint inference

Dmitry Olshansky olshanskydr at gmail.com
Mon Jul 10 14:28:08 UTC 2017


You are right, thanks!



2017-07-07 22:17 GMT+03:00 Li-yao Xia <lysxia at gmail.com>:

>
>
> On 07/07/2017 02:50 AM, Dmitry Olshansky wrote:
>
>> I am not sure why but when I didn't set RankNTypes I got an appropriate
>> error. So I specified it.
>>
>> But if I write
>>    let { f :: (forall n. KnownSymbol n => Proxy n) -> String; f p =
>> symbolVal p }
>> then nothing is changed.
>>
>>
>>
>
> What would the String (f Proxy) be? (Note that (Proxy :: forall n.
> KnownSymbol n => Proxy n) would be a valid argument here.)
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170710/4291b78a/attachment.html>


More information about the Haskell-Cafe mailing list