give up on providing type signature for takeEntriesUntil

This commit is contained in:
Trolli Schmittlauch 2020-06-17 15:13:49 +02:00
parent 43e4ab184e
commit f27812bcf3

View file

@ -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