comparison tests/cargs.lac @ 239:fc6f04889bf2

Shorthand for multi-binding con 'fn'
author Adam Chlipala <adamc@hcoop.net>
date Thu, 28 Aug 2008 13:29:57 -0400
parents
children 7036d29574f2
comparison
equal deleted inserted replaced
238:44a1663ad893 239:fc6f04889bf2
1 con id = fn t :: Type => t
2 con id2 = fn (t :: Type) => id t
3 con id3 = fn t => id2 t
4
5 con pair = fn (t :: Type) (u :: Type) => (t, u)
6 con pair2 = fn t u => pair t u
7 con pair3 = fn t (u :: Type) => pair2 t u