give up on providing type signature for takeEntriesUntil
This commit is contained in:
parent
43e4ab184e
commit
f27812bcf3
|
@ -459,8 +459,6 @@ takeRMapEntries_ getterFunc startAt num rmap = reverse $
|
||||||
Nothing -> []
|
Nothing -> []
|
||||||
Just anEntry -> takeEntriesUntil (getKeyID anEntry) (getKeyID anEntry) (num-1) [anEntry]
|
Just anEntry -> takeEntriesUntil (getKeyID anEntry) (getKeyID anEntry) (num-1) [anEntry]
|
||||||
where
|
where
|
||||||
-- TODO: figure out correct type signature once it compiles
|
|
||||||
--takeEntriesUntil :: (HasKeyID b, Integral i) => NodeID -> NodeID -> i -> [b] -> [b]
|
|
||||||
takeEntriesUntil havingReached previousEntry remaining takeAcc
|
takeEntriesUntil havingReached previousEntry remaining takeAcc
|
||||||
| remaining <= 0 = takeAcc
|
| remaining <= 0 = takeAcc
|
||||||
| getKeyID (fromJust $ getterFunc previousEntry rmap) == havingReached = takeAcc
|
| getKeyID (fromJust $ getterFunc previousEntry rmap) == havingReached = takeAcc
|
||||||
|
|
Loading…
Reference in a new issue