hlint: use on
This commit is contained in:
		
							parent
							
								
									6a4dcf1c68
								
							
						
					
					
						commit
						c9cb3d4399
					
				@ -6,6 +6,7 @@ A ledger-compatible @register@ command.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
module Commands.Register
 | 
					module Commands.Register
 | 
				
			||||||
where
 | 
					where
 | 
				
			||||||
 | 
					import Data.Function (on)
 | 
				
			||||||
import Prelude hiding (putStr)
 | 
					import Prelude hiding (putStr)
 | 
				
			||||||
import Ledger
 | 
					import Ledger
 | 
				
			||||||
import Options
 | 
					import Options
 | 
				
			||||||
@ -99,7 +100,7 @@ showtxns [] _ _ = ""
 | 
				
			|||||||
showtxns (t:ts) tprev bal = this ++ showtxns ts t bal'
 | 
					showtxns (t:ts) tprev bal = this ++ showtxns ts t bal'
 | 
				
			||||||
    where
 | 
					    where
 | 
				
			||||||
      this = showtxn (t `issame` tprev) t bal'
 | 
					      this = showtxn (t `issame` tprev) t bal'
 | 
				
			||||||
      issame t1 t2 = tnum t1 == tnum t2
 | 
					      issame = (==) `on` tnum
 | 
				
			||||||
      bal' = bal + tamount t
 | 
					      bal' = bal + tamount t
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- | Show one transaction line and balance with or without the entry details.
 | 
					-- | Show one transaction line and balance with or without the entry details.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user