diff options
Diffstat (limited to 'src/Command.hs')
| -rw-r--r-- | src/Command.hs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Command.hs b/src/Command.hs new file mode 100644 index 0000000..fd21087 --- /dev/null +++ b/src/Command.hs | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | {-# LANGUAGE FlexibleContexts #-} | ||
| 2 | |||
| 3 | module Command | ||
| 4 | ( Cmd(..) | ||
| 5 | , parseCmd | ||
| 6 | ) where | ||
| 7 | |||
| 8 | import Types | ||
| 9 | |||
| 10 | data Cmd = PerformAlt Alteration | ||
| 11 | | Quit | ||
| 12 | | Step | ||
| 13 | | UnknownCommand String | ||
| 14 | | ParseError String | ||
| 15 | |||
| 16 | parseCmd :: SequenceM m => String -> m Cmd | ||
| 17 | parseCmd input = return $ UnknownCommand input | ||
