[Agda] Re: Implicit vs. explicit function types

Nils Anders Danielsson nad at Cs.Nott.AC.UK
Mon Sep 28 00:18:06 CEST 2009


On 2009-09-27 22:11, Roly Perera wrote:
> test : (∀ {x} → _≤_ x Respects _≡_) × (∀ {y} → flip₁ _≤_ y Respects _≡_)
> test = f , g

I believe that what happens is that Agda automatically applies f and g
to fresh meta-variables:

  test = f {?₁} , g {?₂}

You can make the code type check by changing the last line:

  test = (λ {_} → f) , (λ {_} → g)

-- 
/NAD


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.



More information about the Agda mailing list