Optparse removed unused function

This commit is contained in:
Nikolay Yakimov 2015-12-06 02:41:02 +03:00
parent 41d7988972
commit 75202b4be8

View File

@ -1,6 +1,5 @@
module GHCMod.Options (
parseArgs,
parseCommandsFromList,
GhcModCommands(..)
) where
@ -19,13 +18,6 @@ parseArgs =
( fullDesc
<> header "ghc-mod: Happy Haskell Programming" )
parseCommandsFromList :: [String] -> Either String GhcModCommands
parseCommandsFromList args =
case execParserPure (prefs idm) (info commandsSpec idm) args of
Success a -> Right a
Failure h -> Left $ show h
CompletionInvoked _ -> error "WTF"
helpVersion :: Parser (a -> a)
helpVersion =
helper <*>