mirror of
https://github.com/github/semantic.git
synced 2025-01-03 04:51:57 +03:00
Give a type for for
.
This commit is contained in:
parent
defd4a14ed
commit
faa7096368
@ -40,6 +40,7 @@ decompose myers = case myers of
|
||||
n = length as
|
||||
m = length bs
|
||||
|
||||
for :: (Real a, Monad m) => a -> a -> a -> (a -> m b) -> m ()
|
||||
for from to by with
|
||||
| from >= to = with from >> for (from + by) to by with
|
||||
| otherwise = return ()
|
||||
|
Loading…
Reference in New Issue
Block a user