1{-# LANGUAGE DeriveAnyClass #-}
2{-# LANGUAGE DeriveGeneric #-}
3{-# LANGUAGE LambdaCase #-}
4{-# LANGUAGE NoImplicitPrelude #-}
5{-# LANGUAGE OverloadedStrings #-}
6{-# LANGUAGE RecordWildCards #-}
7{-# LANGUAGE ScopedTypeVariables #-}
8{-# LANGUAGE TypeApplications #-}
10module Control.Hext.Arguments
16import Options.Applicative
19parseOptions :: IO Options
23 (Options <$> activeDirectoryArgument <*> extensionsFilePath)
25 <> progDesc "Add GHC extensions to source files automatically."
30 { activeDirectory :: Maybe FilePath,
31 extensionsPath :: FilePath
34activeDirectoryArgument :: Parser (Maybe FilePath)
35activeDirectoryArgument =
37 (maybeReader $ (Just . Just))
38 ( help "The directiry to scan for .hs files."
42extensionsFilePath :: Parser FilePath
48 <> help "The input yaml file with extensions."
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list