summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstuebinm2022-01-15 00:46:30 +0100
committerstuebinm2022-03-19 19:25:49 +0100
commit1530a4646b5bb7ab2930d1433eda87d5f0936125 (patch)
tree0eb4e3f0ada2743539cefbb27925ece37fabe6de /src
parent6e929b4b1eb9b0b6a4707ed3d9f181544ed27a73 (diff)
use hpack and clean up modules
as annoying as yaml is, cabal's package format is somehow worse, apparently
Diffstat (limited to 'src')
-rw-r--r--src/Main.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 02e8f02..f0a6c09 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -7,7 +7,7 @@
module Main where
-import Control.Monad (unless)
+import Control.Monad (unless, when)
import Control.Monad.Identity (Identity)
import Data.Aeson (eitherDecode, encode)
import Data.Aeson.Encode.Pretty (encodePretty)
@@ -17,18 +17,19 @@ import Data.Maybe (fromMaybe)
import qualified Data.Text.Encoding as T
import qualified Data.Text.IO as T
import System.Exit (ExitCode (..), exitWith)
-import WithCli
+import System.IO (hPutStrLn, stderr)
+import WithCli (Generic, HasArguments, withCli)
import CheckDir (recursiveCheckDir, resultIsFatal, DirResult (dirresultGraph))
import Control.Monad (when)
import LintConfig (LintConfig (..), patchConfig)
-import System.IO (hPutStrLn, stderr)
import Types (Level (..))
import Util (printPretty)
-import qualified Version as V (version)
import WriteRepo (writeAdjustedRepository)
import Text.Dot (showDot)
+import qualified Version as V (version)
+
-- | the options this cli tool can take
data Options = Options
{ repository :: Maybe String