a bit of refactoring to allow addition of more tests
This commit is contained in:
@@ -1,15 +1,7 @@
|
||||
signature INPUT_MSG =
|
||||
sig
|
||||
datatype t =
|
||||
CHAR_EVENT of char
|
||||
| KEY_ESC
|
||||
| RESIZE_EVENT of int * int
|
||||
datatype t = CHAR_EVENT of char | KEY_ESC | RESIZE_EVENT of int * int
|
||||
end
|
||||
|
||||
structure InputMsg :> INPUT_MSG =
|
||||
struct
|
||||
datatype t =
|
||||
CHAR_EVENT of char
|
||||
| KEY_ESC
|
||||
| RESIZE_EVENT of int * int
|
||||
end
|
||||
structure InputMsg :> INPUT_MSG =
|
||||
struct datatype t = CHAR_EVENT of char | KEY_ESC | RESIZE_EVENT of int * int end
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
signature MAILBOX_TYPE =
|
||||
sig
|
||||
datatype t =
|
||||
DRAW of DrawMsg.t
|
||||
datatype t = DRAW of DrawMsg.t
|
||||
end
|
||||
|
||||
structure MailboxType :> MAILBOX_TYPE =
|
||||
struct
|
||||
datatype t =
|
||||
DRAW of DrawMsg.t
|
||||
end
|
||||
struct datatype t = DRAW of DrawMsg.t end
|
||||
|
||||
Reference in New Issue
Block a user