Only

The 1-tuple type or single-value "collection"

Version on this page:0.1@rev:1
LTS Haskell 22.39:0.1@rev:2
Stackage Nightly 2024-11-01:0.1@rev:2
Latest on Hackage:0.1@rev:2

See all snapshots Only appears in

BSD-3-Clause licensed by Herbert Valerio Riedel
Maintained by [email protected]
This version can be pinned in stack with:Only-0.1@sha256:f92f5da97e647451f1ee7f5bf44914fb75062d08ccd3f36b2000d649c63d13aa,1373

Module documentation for 0.1

This package provides a canonical anonymous 1-tuple type missing from Haskell for attaching typeclass instances.

NOTE: There is also the OneTuple package which by using a boxed data-type provides a 1-tuple type which has laziness properties which are more faithful to the ones of Haskell's native tuples; whereas the primary purpose of Only is to provide the traditionally so named type-wrapper for attaching typeclass instances.