
20 Nov
2006
20 Nov
'06
3:14 a.m.
On Monday 20 November 2006 20:44, chris moline wrote:
Hey all, I'm thoroughly confused by the type error produced by the following:
sep :: (a -> Bool) -> [a] -> [[a]] sep p = takeWhile (/= "") . iterT (breakDrop p)
It'll be the "" in (/= ""). Maybe you want to be using (/= []) ? That will work for any type a in the Eq class. Daniel