From 10e7bacbfd909dcee85e2df23ab5f0f98257c8e1 Mon Sep 17 00:00:00 2001 From: hallgren Date: Mon, 10 Aug 2015 16:30:17 +0000 Subject: Factor out common code from GF.Command.Commands and GF.Command.Commands2 Created module GF.Command.CommonCommands with ~250 lines of code for commands that do not depend on the type of PGF in the environemnt, either because they don't use the PGF or because they are just documented here and implemented elsewhere. TODO: further refactoring so that documentation and implementation of *all* commands can be kept together. --- src/compiler/GF/Command/Help.hs | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/compiler/GF/Command/Help.hs') diff --git a/src/compiler/GF/Command/Help.hs b/src/compiler/GF/Command/Help.hs index a1a6c0aaf..a1a4716ee 100644 --- a/src/compiler/GF/Command/Help.hs +++ b/src/compiler/GF/Command/Help.hs @@ -59,8 +59,6 @@ compact [] = [] compact ([]:xs@([]:_)) = compact xs compact (x:xs) = x:compact xs -mkEx s = let (command,expl) = break (=="--") (words s) in (unwords command, unwords (drop 1 expl)) - helpCommand allCommands = ("h", emptyCommandInfo { longname = "help", -- cgit v1.2.3