;partial comment cleanups
This commit is contained in:
		
							parent
							
								
									c2929939e4
								
							
						
					
					
						commit
						a9fbaaf284
					
				| @ -439,8 +439,7 @@ instance Num MixedAmount where | ||||
|     fromInteger i = Mixed [fromInteger i] | ||||
|     negate (Mixed as) = Mixed $ map negate as | ||||
|     (+) (Mixed as) (Mixed bs) = normaliseMixedAmount $ Mixed $ as ++ bs | ||||
|     -- PARTIAL: | ||||
|     (*)    = error' "error, mixed amounts do not support multiplication" | ||||
|     (*)    = error' "error, mixed amounts do not support multiplication" -- PARTIAL: | ||||
|     abs    = error' "error, mixed amounts do not support abs" | ||||
|     signum = error' "error, mixed amounts do not support signum" | ||||
| 
 | ||||
|  | ||||
| @ -193,7 +193,7 @@ regexReplaceUnmemo re repl s = foldM (replaceMatch repl) s (reverse $ match (reC | ||||
|               case read s of n | n `elem` indices grps -> Right $ fst (grps ! n) | ||||
|                              _                         -> Left $ "no match group exists for backreference \"\\"++s++"\"" | ||||
|             lookupMatchGroup _ s = Left $ "lookupMatchGroup called on non-numeric-backreference \""++s++"\", shouldn't happen" | ||||
|     backrefRegex = toRegex' "\\\\[0-9]+"  -- PARTIAL: should not happen | ||||
|     backrefRegex = toRegex' "\\\\[0-9]+"  -- PARTIAL: should not fail | ||||
| 
 | ||||
| -- regexReplace' :: Regexp -> Replacement -> String -> String | ||||
| -- regexReplace' re repl s = | ||||
| @ -213,7 +213,7 @@ regexReplaceUnmemo re repl s = foldM (replaceMatch repl) s (reverse $ match (reC | ||||
| --               -- PARTIAL: | ||||
| --                              _                         -> error' $ "no match group exists for backreference \"\\"++s++"\"" | ||||
| --             lookupMatchGroup _ s = error' $ "lookupMatchGroup called on non-numeric-backreference \""++s++"\", shouldn't happen" | ||||
| --     backrefRegex = toRegex' "\\\\[0-9]+"  -- PARTIAL: should not error happen | ||||
| --     backrefRegex = toRegex' "\\\\[0-9]+"  -- PARTIAL: should not fail | ||||
| 
 | ||||
| 
 | ||||
| -- helpers | ||||
|  | ||||
| @ -305,10 +305,9 @@ balancemode = hledgerCommandMode | ||||
| -- | The balance command, prints a balance report. | ||||
| balance :: CliOpts -> Journal -> IO () | ||||
| balance opts@CliOpts{rawopts_=rawopts,reportopts_=ropts@ReportOpts{..}} j = do | ||||
|   -- PARTIAL: | ||||
|   d <- getCurrentDay | ||||
|   case lineFormatFromOpts ropts of | ||||
|     Left err -> error' $ unlines [err] | ||||
|     Left err -> error' $ unlines [err]  -- PARTIAL: | ||||
|     Right _ -> do | ||||
|       let budget      = boolopt "budget" rawopts | ||||
|           multiperiod = interval_ /= NoInterval | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user