yi 0.13.1 → 0.13.2
raw patch · 2 files changed
+9/−8 lines, 2 filesdep ~optparse-applicative
Dependency ranges changed: optparse-applicative
Files
Main.hs view
@@ -4,6 +4,7 @@ import Data.List (intersperse) import Lens.Micro.Platform ((.=)) import Data.Maybe (fromMaybe)+import Data.Monoid ((<>)) import Options.Applicative @@ -58,10 +59,10 @@ } commandLineOptions :: Parser (Maybe CommandLineOptions)-commandLineOptions = flag' Nothing - ( long "version" - <> short 'v' - <> help "Show the version number") +commandLineOptions = flag' Nothing+ ( long "version"+ <> short 'v'+ <> help "Show the version number") <|> (Just <$> (CommandLineOptions <$> optional (strOption ( long "frontend"@@ -84,7 +85,7 @@ main :: IO () main = do mayClo <- execParser opts- case mayClo of + case mayClo of Nothing -> putStrLn "Yi 0.13.0.1" Just clo -> do let openFileActions = intersperse (EditorA newTabE) (map (YiA . openNewFile) (files clo))@@ -93,7 +94,7 @@ (runConfigM (myConfig (frontend clo) (keymap clo) >> (startActionsA .= (openFileActions ++ [moveLineAction])))) defaultConfig startEditor cfg Nothing- where + where opts = info (helper <*> commandLineOptions) ( fullDesc <> progDesc "Edit files"
yi.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: yi-version: 0.13.1+version: 0.13.2 synopsis: Yi editor category: Yi homepage: https://github.com/yi-editor/yi#readme@@ -46,7 +46,7 @@ base >= 4.8 && < 5 , microlens-platform >= 0.3.4.0 , mtl >= 2.2.1- , optparse-applicative >= 0.12.1.0+ , optparse-applicative >= 0.13.0.0 , yi-core >= 0.13.0.1 , yi-misc-modes >= 0.13.0.1 , yi-mode-haskell >= 0.13.0.1