mirror of
https://github.com/github/semantic.git
synced 2025-01-05 05:58:34 +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
|
n = length as
|
||||||
m = length bs
|
m = length bs
|
||||||
|
|
||||||
|
for :: (Real a, Monad m) => a -> a -> a -> (a -> m b) -> m ()
|
||||||
for from to by with
|
for from to by with
|
||||||
| from >= to = with from >> for (from + by) to by with
|
| from >= to = with from >> for (from + by) to by with
|
||||||
| otherwise = return ()
|
| otherwise = return ()
|
||||||
|
Loading…
Reference in New Issue
Block a user