[Haskell-cafe] Announcing OneTuple-0.1.0

David Menendez dave at zednenem.com
Fri Oct 3 15:38:11 EDT 2008


On Fri, Oct 3, 2008 at 3:17 AM, Jason Dusek <jason.dusek at gmail.com> wrote:
>  Perhaps I am lacking in imagination, but I still can't see the
>  value of one tuples.

You can use them to defeat seq.

undefined `seq` x == undefined
OneTuple undefined `seq` x == x

That might be useful if a polymorphic function is using seq to force
evaluation, and you don't want it to. But I can't imagine that coming
up much in practice.

-- 
Dave Menendez <dave at zednenem.com>
<http://www.eyrie.org/~zednenem/>


More information about the Haskell-Cafe mailing list