Mercurial > urweb
annotate tests/cargs.ur @ 1677:3cfc79f92db7
-dumpSource flag; Especialize tweak: may specialize any argument sequence ending in a value of function-containing type
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 12 Jan 2012 20:37:39 -0500 |
parents | 71bafe66dbe1 |
children |
rev | line source |
---|---|
adamc@239 | 1 con id = fn t :: Type => t |
adamc@239 | 2 con id2 = fn (t :: Type) => id t |
adamc@239 | 3 con id3 = fn t => id2 t |
adamc@239 | 4 |
adamc@239 | 5 con pair = fn (t :: Type) (u :: Type) => (t, u) |
adamc@239 | 6 con pair2 = fn t u => pair t u |
adamc@239 | 7 con pair3 = fn t (u :: Type) => pair2 t u |
adamc@240 | 8 |
adamc@240 | 9 con id4 (t :: Type) = t |
adamc@240 | 10 con id5 (t :: Type) :: Type = id4 t |
adamc@240 | 11 con id6 t :: Type = id5 t |
adamc@240 | 12 |
adamc@240 | 13 con pair4 t (u :: Type) = pair3 t u |
adamc@240 | 14 con pair5 t (u :: Type) :: (Type * Type) = pair4 t u |