fix indents for nonConceal and update TODO
This commit is contained in:
parent
56e1a7ce0b
commit
5843a137f8
2
TODO
2
TODO
|
@ -1,5 +1,3 @@
|
||||||
COMMENT YOUR CODE!!!!!!!
|
|
||||||
|
|
||||||
make it look nicer :)
|
make it look nicer :)
|
||||||
|
|
||||||
fix import/exports to be conservative
|
fix import/exports to be conservative
|
||||||
|
|
|
@ -82,8 +82,7 @@ scroll d s = s & appCursor .~ newCursor
|
||||||
where
|
where
|
||||||
upperLimit = fromMaybe 0 (subtract 1 . length . movies <$> s ^. appListing)
|
upperLimit = fromMaybe 0 (subtract 1 . length . movies <$> s ^. appListing)
|
||||||
new = case d of { Up -> (subtract 1); Down -> (+1) }
|
new = case d of { Up -> (subtract 1); Down -> (+1) }
|
||||||
oldCursor = s ^. appCursor
|
newCursor = max 0 (min upperLimit (new (s ^. appCursor)))
|
||||||
newCursor = max 0 (min upperLimit (new oldCursor))
|
|
||||||
|
|
||||||
|
|
||||||
-- | Given a String, modify our state so that string
|
-- | Given a String, modify our state so that string
|
||||||
|
|
Loading…
Reference in New Issue
Block a user