[Haskell-cafe] List implementation.

MR K P SCHUPKE k.schupke at imperial.ac.uk
Tue Oct 12 09:06:36 EDT 2004


>class List l where
>   head :: IArray UArray a => l a -> Maybe a
>   tail :: IArray UArray a => l a -> Maybe (l a)

changed my mind about this... you cannot do: tail $ tail $ tail x
so added a 'null' test instead.


More information about the Haskell-Cafe mailing list