fix indents for nonConceal and update TODO

master
Rachel Lambda Samuelsson 2021-09-19 19:43:19 +02:00
parent 56e1a7ce0b
commit 5843a137f8
4 changed files with 7 additions and 10 deletions

2
TODO
View File

@ -1,5 +1,3 @@
COMMENT YOUR CODE!!!!!!!
make it look nicer :)
fix import/exports to be conservative

View File

@ -82,8 +82,7 @@ scroll d s = s & appCursor .~ newCursor
where
upperLimit = fromMaybe 0 (subtract 1 . length . movies <$> s ^. appListing)
new = case d of { Up -> (subtract 1); Down -> (+1) }
oldCursor = s ^. appCursor
newCursor = max 0 (min upperLimit (new oldCursor))
newCursor = max 0 (min upperLimit (new (s ^. appCursor)))
-- | Given a String, modify our state so that string