Just FYI, at Credit Suisse I wrote a 1-tuple type a few years ago. It was the only way to get a consistent way of dealing with certain things. But I called it One. I think the OneTuple should be in the base library, I mean, ask an 8 year old what number is missing in this sequence 0,2,3,4,5,6,7,8,9,...
-- Lennart On Thu, Oct 2, 2008 at 7:56 AM, John Dorsey <[EMAIL PROTECTED]> wrote: > Fellow Haskellers, > > Much attention has been paid over the years to the regrettable > omission of singleton tuples from Haskell. > > I am pleased to announce OneTuple, a humble implementation of the > singleton tuple for Haskell. Now you can: > > * Wrap a single value of any type in a OneTuple ! > > * Pattern match to retrieve your value ! > > * Solve any of the software problems that cannot be solved without > the singleton tuple ! > > * Enjoy instances for all the classes normal tuples have, plus more ! > > * Proclaim feature parity with Python ! > > Note: the singleton tuple does not support tuple syntax. > > Contributions are welcome. The project could use a tutorial, and a > decent test suite. Strict singleton tuples are planned for the next > version. > > Enjoy! > > Regards, > John Dorsey > > _______________________________________________ > Haskell-Cafe mailing list > Haskell-Cafe@haskell.org > http://www.haskell.org/mailman/listinfo/haskell-cafe > _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe