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 -> []
|
||||
Just anEntry -> takeEntriesUntil (getKeyID anEntry) (getKeyID anEntry) (num-1) [anEntry]
|
||||
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
|
||||
| remaining <= 0 = takeAcc
|
||||
| getKeyID (fromJust $ getterFunc previousEntry rmap) == havingReached = takeAcc
|
||||
|
|
Loading…
Reference in a new issue