thanks codeclimate

pull/301/head
Will Song 5 years ago
parent 4a90286dc9
commit 654811f6f9
  1. 4
      src/Main.hs

@ -1,7 +1,7 @@
module Main where
import Control.Lens (view, (^.))
import Control.Monad (when)
import Control.Monad (unless)
import Control.Monad.Reader (runReaderT)
import Control.Monad.Random (getRandom)
import Data.Text (pack, unpack)
@ -47,7 +47,7 @@ main :: IO ()
main = do Options f c conf <- execParser opts
g <- getRandom
EConfigWithUsage cfg ks _ <- maybe (pure (EConfigWithUsage defaultConfig mempty mempty)) parseConfig conf
when (not (cfg ^. sConf . quiet)) $ mapM_ (hPutStrLn stderr . ("Warning: unused option: " ++) . unpack) ks
unless (cfg ^. sConf . quiet) $ mapM_ (hPutStrLn stderr . ("Warning: unused option: " ++) . unpack) ks
cpg <- flip runReaderT cfg $ do
cs <- contracts f
ads <- addresses

Loading…
Cancel
Save