imp: ghc9.2: silence incomplete-record-updates warnings
This commit is contained in:
		
							parent
							
								
									d9ecd1eb9d
								
							
						
					
					
						commit
						3eddd913e3
					
				| @ -3,6 +3,7 @@ | |||||||
| {-# LANGUAGE FlexibleContexts  #-} | {-# LANGUAGE FlexibleContexts  #-} | ||||||
| {-# LANGUAGE OverloadedStrings #-} | {-# LANGUAGE OverloadedStrings #-} | ||||||
| {-# LANGUAGE RecordWildCards   #-} | {-# LANGUAGE RecordWildCards   #-} | ||||||
|  | {-# OPTIONS_GHC -Wno-incomplete-record-updates #-} | ||||||
| 
 | 
 | ||||||
| module Hledger.UI.ErrorScreen | module Hledger.UI.ErrorScreen | ||||||
|  (errorScreen |  (errorScreen | ||||||
| @ -162,6 +163,14 @@ uiReloadJournal copts d ui = do | |||||||
|       case ui of |       case ui of | ||||||
|         UIState{aScreen=s@ErrorScreen{}} -> ui{aScreen=s{esError=err}} |         UIState{aScreen=s@ErrorScreen{}} -> ui{aScreen=s{esError=err}} | ||||||
|         _                                -> screenEnter d errorScreen{esError=err} ui |         _                                -> screenEnter d errorScreen{esError=err} ui | ||||||
|  |       -- XXX GHC 9.2 warning: | ||||||
|  |       -- hledger-ui/Hledger/UI/ErrorScreen.hs:164:59: warning: [-Wincomplete-record-updates] | ||||||
|  |       --     Pattern match(es) are non-exhaustive | ||||||
|  |       --     In a record-update construct: | ||||||
|  |       --         Patterns of type ‘Screen’ not matched: | ||||||
|  |       --             AccountsScreen _ _ _ _ _ | ||||||
|  |       --             RegisterScreen _ _ _ _ _ _ | ||||||
|  |       --             TransactionScreen _ _ _ _ _ _ | ||||||
| 
 | 
 | ||||||
| -- | Like uiReloadJournal, but does not re-parse the journal if the file(s) | -- | Like uiReloadJournal, but does not re-parse the journal if the file(s) | ||||||
| -- have not changed since last loaded. Always regenerates the screens though, | -- have not changed since last loaded. Always regenerates the screens though, | ||||||
|  | |||||||
| @ -4,6 +4,7 @@ | |||||||
| {-# LANGUAGE OverloadedStrings #-} | {-# LANGUAGE OverloadedStrings #-} | ||||||
| {-# LANGUAGE RecordWildCards   #-} | {-# LANGUAGE RecordWildCards   #-} | ||||||
| {-# LANGUAGE NamedFieldPuns #-} | {-# LANGUAGE NamedFieldPuns #-} | ||||||
|  | {-# OPTIONS_GHC -Wno-incomplete-record-updates #-} | ||||||
| 
 | 
 | ||||||
| module Hledger.UI.RegisterScreen | module Hledger.UI.RegisterScreen | ||||||
|  (registerScreen |  (registerScreen | ||||||
|  | |||||||
| @ -3,6 +3,7 @@ | |||||||
| {-# LANGUAGE OverloadedStrings #-} | {-# LANGUAGE OverloadedStrings #-} | ||||||
| {-# LANGUAGE RecordWildCards   #-} | {-# LANGUAGE RecordWildCards   #-} | ||||||
| {-# LANGUAGE TupleSections     #-} | {-# LANGUAGE TupleSections     #-} | ||||||
|  | {-# OPTIONS_GHC -Wno-incomplete-record-updates #-} | ||||||
| 
 | 
 | ||||||
| module Hledger.UI.TransactionScreen | module Hledger.UI.TransactionScreen | ||||||
| ( transactionScreen | ( transactionScreen | ||||||
|  | |||||||
| @ -26,7 +26,7 @@ extra-deps: | |||||||
| 
 | 
 | ||||||
| # silence new warnings temporarily | # silence new warnings temporarily | ||||||
| ghc-options: | ghc-options: | ||||||
|   "$locals": -Wno-incomplete-uni-patterns -Wno-incomplete-record-updates |   "$locals": -Wno-incomplete-uni-patterns | ||||||
| 
 | 
 | ||||||
| nix: | nix: | ||||||
|   pure: false |   pure: false | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user