Closed xgrommx closed 7 years ago
I just pushed a new version that should address this. I added your example in Data.Functor.Foldable.Extra
so that it won't break again.
Thanks for the bug report!
@vmchale This is my full example in haskell. Maybe I wrote it incorrect in idris
partitionByCond :: Ord a => (a -> a -> Bool) -> [a] -> [[a]]
partitionByCond cond = para psi where
psi = \case
Nil -> []
Cons x (a:_, a':b') | cond x a -> (x:a'):b'
Cons x (_, r) -> [x]:r
partitionByCond (<) [1,2,3,1,2,3,5,1,3,4] -- [[1,2,3],[1,2,3,5],[1,3,4]]
Hello @vmchale I tried create example with
para
(I have too much examples with haskell recursion schemes and I want to port them to idris)But I got error like
Could u help me?
This is my example on haskell