[Haskell-cafe] Yet more type confusion
Daniel McAllansmith
dm.maillists at gmail.com
Mon Nov 20 03:14:49 EST 2006
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
More information about the Haskell-Cafe
mailing list