Re: [Haskell-cafe] 1p function for NonEmpty

2011-11-15 Thread Yitzchak Gale
I wrote: > The following functions would be nice additions > to Data.List.NonEmpty in the semigroups package... Here are two more requests: maximum, minimum :: Ord a => NonEmpty a -> a Two more unsafe Prelude functions become safe! Thanks, Yitz ___ H

[Haskell-cafe] 1p function for NonEmpty

2011-11-15 Thread Yitzchak Gale
Hi Edward, I started @telling you on #haskell, but it has become too long for that. :) The following functions would be nice additions to Data.List.NonEmpty in the semigroups package: replicate1p :: Whole n => n -> a -> NonEmpty a take1p :: Whole n => n -> NonEmpty a -> NonEmpty a splitAt1p :: W