From a7d7542dc646a5fd124ef71e71ce260889f1701b Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 2 Feb 2016 19:24:50 +0100 Subject: Moved to 1415 directory --- 1415/files/practicum/StdT.icl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 1415/files/practicum/StdT.icl (limited to '1415/files/practicum/StdT.icl') diff --git a/1415/files/practicum/StdT.icl b/1415/files/practicum/StdT.icl new file mode 100644 index 0000000..4136172 --- /dev/null +++ b/1415/files/practicum/StdT.icl @@ -0,0 +1,18 @@ +implementation module StdT + +import StdEnv + +:: T = // implementeer een algebraisch type *of* een record type + +instance == T where == // maak implementatie af +instance < T where < // maak implementatie af + +instance zero T where zero // maak implementatie af +instance + T where + // maak implementatie af +instance - T where - // maak implementatie af + +instance toInt T where toInt // maak implementatie af +instance fromInt T where fromInt // maak implementatie af + +instance toString T where toString // maak implementatie af +instance fromString T where fromString // maak implementatie af -- cgit v1.2.3