1
0
forked from GitHub/gf-core
Files
gf-core/gf-book/examples/chapter6/Smart.gf
2011-01-11 15:46:43 +00:00

17 lines
308 B
Plaintext

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 ;
}