Merge pull request #14 from hapytex/improvement/redundant-dollar
Remove redundant $ by repositioning parenthesis
This commit is contained in:
		
						commit
						1ddcd856a3
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -205,7 +205,7 @@ clearFullRows = do
 | 
			
		|||
  modifying board $ M.filterWithKey $ \(V2 _ y) _ -> y `notElem` fullRows
 | 
			
		||||
  -- Shift cells above full rows
 | 
			
		||||
  modifying board $ M.mapKeysMonotonic $ over _y $ \y ->
 | 
			
		||||
    y - (length $ filter (< y) fullRows)
 | 
			
		||||
    y - length (filter (< y) fullRows)
 | 
			
		||||
  return $ length fullRows
 | 
			
		||||
 | 
			
		||||
-- | Empties row on 0, otherwise appends value (just keeps consecutive information)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -222,7 +222,7 @@ drawStats g =
 | 
			
		|||
        ]
 | 
			
		||||
 | 
			
		||||
drawStat :: String -> Int -> Widget Name
 | 
			
		||||
drawStat s n = padLeftRight 1 $ str s <+> (padLeft Max $ str $ show n)
 | 
			
		||||
drawStat s n = padLeftRight 1 $ str s <+> padLeft Max (str $ show n)
 | 
			
		||||
 | 
			
		||||
drawLeaderBoard :: Game -> Widget Name
 | 
			
		||||
drawLeaderBoard _ = emptyWidget
 | 
			
		||||
| 
						 | 
				
			
			@ -270,8 +270,8 @@ drawHelp =
 | 
			
		|||
 | 
			
		||||
drawKeyInfo :: String -> String -> Widget Name
 | 
			
		||||
drawKeyInfo action keys =
 | 
			
		||||
  (padRight Max $ padLeft (Pad 1) $ str action)
 | 
			
		||||
    <+> (padLeft Max $ padRight (Pad 1) $ str keys)
 | 
			
		||||
  padRight Max (padLeft (Pad 1) $ str action)
 | 
			
		||||
    <+> padLeft Max (padRight (Pad 1) $ str keys)
 | 
			
		||||
 | 
			
		||||
drawGameOver :: Game -> Widget Name
 | 
			
		||||
drawGameOver g =
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue