diff options
Diffstat (limited to 'repgoal.hs')
-rwxr-xr-x | repgoal.hs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -144,7 +144,7 @@ data CustomEvent = CustomEvent | |||
144 | 144 | ||
145 | data SetScheme = SetScheme { ratioMax :: Rational, numberOfReps :: Integer, amrap :: Bool } | 145 | data SetScheme = SetScheme { ratioMax :: Rational, numberOfReps :: Integer, amrap :: Bool } |
146 | 146 | ||
147 | setScheme :: Rational -> Integer -> SetScheme | 147 | setScheme, setSchemeAMRAP :: Rational -> Integer -> SetScheme |
148 | setScheme percentage reps = SetScheme (percentage / 100) reps False | 148 | setScheme percentage reps = SetScheme (percentage / 100) reps False |
149 | setSchemeAMRAP percentage reps = SetScheme (percentage / 100) reps True | 149 | setSchemeAMRAP percentage reps = SetScheme (percentage / 100) reps True |
150 | 150 | ||
@@ -169,6 +169,7 @@ annotatePosition :: [a] -> [(ListPosition, a)] | |||
169 | annotatePosition [] = undefined | 169 | annotatePosition [] = undefined |
170 | annotatePosition (x:xs) = (FirstInList, x) : map (NotFirstInList,) xs | 170 | annotatePosition (x:xs) = (FirstInList, x) : map (NotFirstInList,) xs |
171 | 171 | ||
172 | lookup' :: Int -> NESeq a -> a | ||
172 | lookup' i seq = fromJust $ NESeq.lookup (i `mod` NESeq.length seq) seq | 173 | lookup' i seq = fromJust $ NESeq.lookup (i `mod` NESeq.length seq) seq |
173 | 174 | ||
174 | drawUI :: St -> [Widget ()] | 175 | drawUI :: St -> [Widget ()] |