| ||||||||||||
| ||||||||||||
| ||||||||||||
Description | ||||||||||||
Version : 0.1 This module provides a tiny and nice implementation of a little command shell. It can be feed with individual commands and provides a simple but powerful way to interact with your program. The following functions are implemented by default: exit - exit the console loop help - print a nice help There was a little bug with the System.Console.Readline package. When we use this option, we make a foreign call... and the Haskell library documentation say this about concurrency and GHC: We make a foreign call, which is not in the System.IO library, so we have to work with -threaded when we want a fancy command history. | ||||||||||||
Synopsis | ||||||||||||
| ||||||||||||
Console datatype | ||||||||||||
| ||||||||||||
Map which contains all commands that the user can execute | ||||||||||||
Operations | ||||||||||||
| ||||||||||||
gets the next option from the command line as string | ||||||||||||
| ||||||||||||
Simple parser for the commandline... | ||||||||||||
| ||||||||||||
Creates a new console datatype | ||||||||||||
| ||||||||||||
| ||||||||||||
| ||||||||||||
The main loop. You know... read stdin, parse the input, execute command. You can quit it by the exit-command. | ||||||||||||
Produced by Haddock version 2.6.1 |