This file contains hidden or 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
instance Options MainOptions where | |
defineOptions = | |
MainOptions <$> defineOption optionType_bool a_help | |
<*> defineOption optionType_bool a_version | |
<*> defineOption optionType_string a_path | |
where a_help opt = opt { optionLongFlags = ["help"] | |
, optionShortFlags = ['h'] | |
} | |
a_version opt = opt { optionLongFlags = ["version"] | |
, optionShortFlags = ['v'] |
This file contains hidden or 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
{- | |
Денис Шевченко, 2015 | |
-} | |
module Main where | |
import Control.Monad.Writer.Lazy | |
import Data.Functor ((<$>)) | |
import Data.List (dropWhileEnd) | |
import Data.Char (isSpace) |
NewerOlder