completed book examples

This commit is contained in:
aarne
2010-11-22 15:48:52 +00:00
parent 76ba03b545
commit 67176f1520
11 changed files with 110 additions and 9 deletions

View File

@@ -0,0 +1,16 @@
abstract Smart = {
cat
Command ;
Kind ;
Device Kind ;
Action Kind ;
fun
Act : (k : Kind) -> Action k -> Device k -> Command ;
The : (k : Kind) -> Device k ; -- the light
Light, Fan : Kind ;
Dim : Action Light ;
SwitchOn, SwitchOff : (k : Kind) -> Action k ;
}