comparison tests/functor.lac @ 40:e3d3c2791105

Functor parsing
author Adam Chlipala <adamc@hcoop.net>
date Thu, 19 Jun 2008 15:15:00 -0400
parents
children 1405d8c26790
comparison
equal deleted inserted replaced
39:02f42e9a1825 40:e3d3c2791105
1 signature S = sig
2 type t
3 val z : t
4 val s : t -> t
5 end
6
7 signature T = sig
8 type t
9 val three : t
10 end
11
12 structure F = functor (M : S) : T => struct
13 val t = M.t
14 val three = M.s (M.s (M.s M.z))
15 end