summaryrefslogtreecommitdiff
path: root/Types/Command.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Types/Command.hs')
-rw-r--r--Types/Command.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Types/Command.hs b/Types/Command.hs
index 99920e657..acd662bf3 100644
--- a/Types/Command.hs
+++ b/Types/Command.hs
@@ -43,7 +43,7 @@ data Command = Command
, cmdnocommit :: Bool -- don't commit journalled state changes
, cmdnomessages :: Bool -- don't output normal messages
, cmdname :: String
- , cmdparamdesc :: String -- description of params for usage
+ , cmdparamdesc :: CmdParamsDesc -- description of params for usage
, cmdsection :: CommandSection
, cmddesc :: String -- description of command for usage
, cmdparser :: CommandParser -- command line parser
@@ -54,6 +54,8 @@ data Command = Command
- are parsed. -}
type CmdParams = [String]
+type CmdParamsDesc = String
+
{- CommandCheck functions can be compared using their unique id. -}
instance Eq CommandCheck where
a == b = idCheck a == idCheck b