Created
June 23, 2009 04:51
-
-
Save deontologician/134366 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Callback m a = [String] -> CommandLineT m a | |
type CallbackList m a = Map.Map String (Callback m a) | |
type Environment = Map.Map String String | |
data CommandState m a = CS { registry :: Environment | |
, callbacks :: CallbackList m a | |
} | |
newtype CommandLineT m a = CommandLine (StateT (CommandState m a) (InputT m) a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment