fix ghc pattern match warning (#323)
This commit is contained in:
		
							parent
							
								
									ec507955e1
								
							
						
					
					
						commit
						4dd7dba771
					
				| @ -75,10 +75,10 @@ withJournalDo opts cmd = do | |||||||
| 
 | 
 | ||||||
| -- | Apply the pivot transformation on a journal, if option is present. | -- | Apply the pivot transformation on a journal, if option is present. | ||||||
| pivotByOpts :: CliOpts -> Journal -> Journal | pivotByOpts :: CliOpts -> Journal -> Journal | ||||||
| pivotByOpts opts | pivotByOpts opts = | ||||||
|   | Just tag <- maybeTag = pivot tag |   case maybestringopt "pivot" . rawopts_ $ opts of | ||||||
|   | Nothing  <- maybeTag = id |     Just tag -> pivot tag | ||||||
|  where maybeTag = maybestringopt "pivot" . rawopts_ $ opts |     Nothing  -> id | ||||||
| 
 | 
 | ||||||
| -- | Apply the pivot transformation by given tag on a journal. | -- | Apply the pivot transformation by given tag on a journal. | ||||||
| pivot :: String -> Journal -> Journal | pivot :: String -> Journal -> Journal | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user