[Ur] function and signature

Adam Chlipala adamc at impredicative.com
Mon Oct 17 18:54:35 EDT 2011


Gergely Buday wrote:
> My trial is
> val computeRecordz: r ::: {Type} ->  [ r ~ [Here] ] ->  [ r ~ [There] ] ->   ...
>                            ->  Basis.list {1 : Basis.bool, 2 :
> Basis.list $( r ++ [Here = myType, There = myType]) }
>
> but it invokes some syntax error messages. What is wrong with this?
>    

Disjointness constraints have "=>" after them, not "->".

And it will be nicer to replace

Basis.list {1 : Basis.bool, 2 : Basis.list $( r ++ [Here = myType, There 
= myType]) }

with

list (bool * list $(r ++ [Here = myType, There = myType]))




More information about the Ur mailing list