16524
|
1 |
(* Title: Pure/class.ML
|
|
2 |
ID: $Id$
|
|
3 |
Author: Florian Haftmann, TU Muenchen
|
|
4 |
|
|
5 |
Haskell98-like type classes, simulated by locales
|
|
6 |
*)
|
|
7 |
|
|
8 |
(*!!! for now, only experimental scratch code !!!*)
|
|
9 |
|
|
10 |
signature CLASS =
|
|
11 |
sig
|
|
12 |
|
|
13 |
end
|
|
14 |
|
|
15 |
structure Class : CLASS =
|
|
16 |
struct
|
|
17 |
|
|
18 |
end;
|