Skip to content

Commit

Permalink
add verbose flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sigrdrifa committed Jan 4, 2024
1 parent 23c694e commit 55de649
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PHONY: test
test:
PHONY: run-tests
run-tests:
@cabal test

build-all:
Expand Down
2 changes: 1 addition & 1 deletion app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ main = do
show (optCommand opts) ++
" (verbose: " ++ show (optVerboseFlag opts) ++ ")\n" ++
" (realtime: " ++ show (optRealTimeFlag opts) ++ ")\n"
rc <- run (optCommand opts) (optRealTimeFlag opts)
rc <- run (optCommand opts) (optRealTimeFlag opts) (optVerboseFlag opts)
print rc
where
optsParser :: ParserInfo Opts
Expand Down
60 changes: 30 additions & 30 deletions audiocate.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -73,36 +73,36 @@ executable audiocate
hs-source-dirs: app
default-language: GHC2021

-- executable audiocate-gui
-- hs-source-dirs: gui
-- c-sources: csrc/resources.c
-- main-is: Main.hs
-- ghc-options: -Wall -fno-warn-unused-do-bind -threaded -with-rtsopts=-N
-- build-depends:
-- base >=4.7 && <5
-- , audiocate
-- , time
-- , gi-glib
-- , gi-gtk
-- , gi-adwaita
-- , gi-gobject
-- , gi-gio
-- , haskell-gi-base
-- , directory
-- , text
-- , mtl
-- , stm
-- other-modules:
-- MainWindow
-- , View.EncodeView
-- , View.DecodeView
-- , View.LoadView
-- , AppState
-- default-language: GHC2021
-- default-extensions:
-- OverloadedLabels
-- , OverloadedStrings
-- , OverloadedRecordDot
executable audiocate-gui
hs-source-dirs: gui
c-sources: csrc/resources.c
main-is: Main.hs
ghc-options: -Wall -fno-warn-unused-do-bind -threaded -with-rtsopts=-N
build-depends:
base >=4.7 && <5
, audiocate
, time
, gi-glib
, gi-gtk
, gi-adwaita
, gi-gobject
, gi-gio
, haskell-gi-base
, directory
, text
, mtl
, stm
other-modules:
MainWindow
, View.EncodeView
, View.DecodeView
, View.LoadView
, AppState
default-language: GHC2021
default-extensions:
OverloadedLabels
, OverloadedStrings
, OverloadedRecordDot

test-suite audiocate-test
default-language: GHC2021
Expand Down
2 changes: 1 addition & 1 deletion lib/Audiocate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Command.Cmd (Command(..), CommandReturnCode(..), interpretCmd)

-- | Runs the provided Command
run :: Command -> Bool -> Bool -> IO CommandReturnCode
run cmd isRealTime isVerbose = interpretCmd cmd isRealTime isVerbose
run = interpretCmd

-- | Prints the version string
version :: String
Expand Down

0 comments on commit 55de649

Please sign in to comment.