[Agda] type annotation in-place
Jesper Cockx
Jesper at sikanda.be
Wed Oct 7 13:54:02 CEST 2015
>From Function.agda in the standard library:
-- In Agda you cannot annotate every subexpression with a type
> -- signature. This function can be used instead.
>
> _∋_ : ∀ {a} (A : Set a) → A → A
> A ∋ x = x
>
Does this solve your problem?
Jesper
On Wed, Oct 7, 2015 at 1:41 PM, Sergei Meshveliani <mechvel at botik.ru> wrote:
> Is it possible to allow in Language the syntax like
>
> foo123foo = foo' : Foo
>
> (instead of
> foo123foo : Foo
> foo123foo = foo'
> )
> ?
>
> And one also could think of expressions like
>
> foo = foo' (f x : T) y : Foo
>
> This will make programs a bit more readable.
>
> Regards,
>
> ------
> Sergei
>
> _______________________________________________
> Agda mailing list
> Agda at lists.chalmers.se
> https://lists.chalmers.se/mailman/listinfo/agda
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.chalmers.se/pipermail/agda/attachments/20151007/70b19ac6/attachment.html
More information about the Agda
mailing list