remove redundant .^ in Tetris.hs
This commit is contained in:
		
							parent
							
								
									55f87143b4
								
							
						
					
					
						commit
						70270dbbce
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -178,7 +178,7 @@ initGame lvl = do
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
isGameOver :: Game -> Bool
 | 
					isGameOver :: Game -> Bool
 | 
				
			||||||
isGameOver g = blockStopped g && g ^. block ^. origin == startOrigin
 | 
					isGameOver g = blockStopped g && g ^. (block . origin) == startOrigin
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- | The main game execution, this is executed at each discrete time step
 | 
					-- | The main game execution, this is executed at each discrete time step
 | 
				
			||||||
timeStep :: MonadIO m => TetrisT m ()
 | 
					timeStep :: MonadIO m => TetrisT m ()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue