Mercurial > urweb
comparison tests/functor.lac @ 41:1405d8c26790
Beginning of functor elaboration
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 19 Jun 2008 16:04:28 -0400 |
parents | e3d3c2791105 |
children | b3fbbc6cb1e5 |
comparison
equal
deleted
inserted
replaced
40:e3d3c2791105 | 41:1405d8c26790 |
---|---|
7 signature T = sig | 7 signature T = sig |
8 type t | 8 type t |
9 val three : t | 9 val three : t |
10 end | 10 end |
11 | 11 |
12 signature F = functor (M : S) : T | |
13 | |
12 structure F = functor (M : S) : T => struct | 14 structure F = functor (M : S) : T => struct |
13 val t = M.t | 15 type t = M.t |
14 val three = M.s (M.s (M.s M.z)) | 16 val three = M.s (M.s (M.s M.z)) |
15 end | 17 end |
18 | |
19 structure F2 : F = F |