Fix some hlint warnings

Former-commit-id: e9b81a8bc0b0c99abe57644e8806c437759ca687
This commit is contained in:
Jan Hrček 2019-12-10 18:22:37 +01:00 committed by David Himmelstrup
commit 3d20cf49ef
19 changed files with 25 additions and 37 deletions

View file

@ -46,10 +46,9 @@ demonstrateAlgorithm name algo = mkAnimation 10 $ \t ->
translate (-screenWidth*0.26) (-screenHeight*0.05) $
rotate (-90) $ scale 0.5 $ center $
latex "$Time \\rightarrow$"
, withFillColor "white" $ translate ((screenWidth*0.30)) 0 $
, withFillColor "white" $ translate (screenWidth*0.30) 0 $
mkCircle ((1-t)*0.5)
]
where
-- main :: IO ()
@ -175,7 +174,7 @@ insertSort = do
worker a 0 = writeS 0 a
worker a j = do
b <- readS (j-1)
if (a < b)
if a < b
then do
writeS j b
worker a (j-1)