;ui: fix build error due to tests rewrite
This commit is contained in:
		
							parent
							
								
									4ab5896902
								
							
						
					
					
						commit
						5dac8af2ef
					
				| @ -31,7 +31,7 @@ import Control.Monad.State.Strict (StateT, evalStateT, execStateT) | |||||||
| -- import Data.CallStack | -- import Data.CallStack | ||||||
| import Data.List (isInfixOf) | import Data.List (isInfixOf) | ||||||
| import qualified Data.Text as T | import qualified Data.Text as T | ||||||
| import Test.Tasty | import Test.Tasty hiding (defaultMain) | ||||||
| import Test.Tasty.HUnit | import Test.Tasty.HUnit | ||||||
| -- import Test.Tasty.QuickCheck as QC | -- import Test.Tasty.QuickCheck as QC | ||||||
| -- import Test.Tasty.SmallCheck as SC | -- import Test.Tasty.SmallCheck as SC | ||||||
|  | |||||||
| @ -172,7 +172,7 @@ runBrickUi uopts@UIOpts{cliopts_=copts@CliOpts{inputopts_=_iopts,reportopts_=rop | |||||||
| 
 | 
 | ||||||
|   if not (watch_ uopts') |   if not (watch_ uopts') | ||||||
|   then |   then | ||||||
|     void $ defaultMain brickapp ui |     void $ Brick.defaultMain brickapp ui | ||||||
| 
 | 
 | ||||||
|   else do |   else do | ||||||
|     -- a channel for sending misc. events to the app |     -- a channel for sending misc. events to the app | ||||||
|  | |||||||
| @ -57,6 +57,7 @@ import qualified Data.Text as T | |||||||
| import Data.Time.Calendar | import Data.Time.Calendar | ||||||
| import System.Environment (withArgs) | import System.Environment (withArgs) | ||||||
| import System.Console.CmdArgs.Explicit as C | import System.Console.CmdArgs.Explicit as C | ||||||
|  | import Test.Tasty (defaultMain) | ||||||
| 
 | 
 | ||||||
| import Hledger  | import Hledger  | ||||||
| import Hledger.Cli.CliOptions | import Hledger.Cli.CliOptions | ||||||
| @ -271,7 +272,7 @@ testmode = hledgerCommandMode | |||||||
| testcmd :: CliOpts -> Journal -> IO () | testcmd :: CliOpts -> Journal -> IO () | ||||||
| testcmd opts _undefined = do  | testcmd opts _undefined = do  | ||||||
|   withArgs (words' $ query_ $ reportopts_ opts) $ |   withArgs (words' $ query_ $ reportopts_ opts) $ | ||||||
|     defaultMain $ tests "hledger" [  -- Test.Tasty.defaultMain from Hledger.Util.Tests |     Test.Tasty.defaultMain $ tests "hledger" [ | ||||||
|        tests_Hledger |        tests_Hledger | ||||||
|       ,tests "Hledger.Cli" [ |       ,tests "Hledger.Cli" [ | ||||||
|          tests_Cli_Utils |          tests_Cli_Utils | ||||||
|  | |||||||
| @ -4,7 +4,7 @@ cabal-version: 1.12 | |||||||
| -- | -- | ||||||
| -- see: https://github.com/sol/hpack | -- see: https://github.com/sol/hpack | ||||||
| -- | -- | ||||||
| -- hash: a8cb399c2c97d23c9fc48e12709494216df3069cce7ec448277be8fde91f72d0 | -- hash: 8a2b2b502050a55652603b9859bcf11a6dbf6cb265a4b7305e36bd31e288af3a | ||||||
| 
 | 
 | ||||||
| name:           hledger | name:           hledger | ||||||
| version:        1.15.99 | version:        1.15.99 | ||||||
| @ -175,6 +175,7 @@ library | |||||||
|     , shakespeare >=2.0.2.2 |     , shakespeare >=2.0.2.2 | ||||||
|     , split >=0.1 |     , split >=0.1 | ||||||
|     , tabular >=0.2 |     , tabular >=0.2 | ||||||
|  |     , tasty >=1.2.3 | ||||||
|     , temporary |     , temporary | ||||||
|     , text >=0.11 |     , text >=0.11 | ||||||
|     , time >=1.5 |     , time >=1.5 | ||||||
| @ -225,6 +226,7 @@ executable hledger | |||||||
|     , shakespeare >=2.0.2.2 |     , shakespeare >=2.0.2.2 | ||||||
|     , split >=0.1 |     , split >=0.1 | ||||||
|     , tabular >=0.2 |     , tabular >=0.2 | ||||||
|  |     , tasty >=1.2.3 | ||||||
|     , temporary |     , temporary | ||||||
|     , text >=0.11 |     , text >=0.11 | ||||||
|     , time >=1.5 |     , time >=1.5 | ||||||
| @ -276,6 +278,7 @@ test-suite test | |||||||
|     , shakespeare >=2.0.2.2 |     , shakespeare >=2.0.2.2 | ||||||
|     , split >=0.1 |     , split >=0.1 | ||||||
|     , tabular >=0.2 |     , tabular >=0.2 | ||||||
|  |     , tasty >=1.2.3 | ||||||
|     , temporary |     , temporary | ||||||
|     , test-framework |     , test-framework | ||||||
|     , test-framework-hunit |     , test-framework-hunit | ||||||
| @ -328,6 +331,7 @@ benchmark bench | |||||||
|     , shakespeare >=2.0.2.2 |     , shakespeare >=2.0.2.2 | ||||||
|     , split >=0.1 |     , split >=0.1 | ||||||
|     , tabular >=0.2 |     , tabular >=0.2 | ||||||
|  |     , tasty >=1.2.3 | ||||||
|     , temporary |     , temporary | ||||||
|     , text >=0.11 |     , text >=0.11 | ||||||
|     , time >=1.5 |     , time >=1.5 | ||||||
|  | |||||||
| @ -131,6 +131,7 @@ dependencies: | |||||||
| - split >=0.1 | - split >=0.1 | ||||||
| - math-functions >=0.2.0.0 | - math-functions >=0.2.0.0 | ||||||
| - tabular >=0.2 | - tabular >=0.2 | ||||||
|  | - tasty >=1.2.3 | ||||||
| - temporary | - temporary | ||||||
| - text >=0.11 | - text >=0.11 | ||||||
| - time >=1.5 | - time >=1.5 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user