HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulefoundation-0.0.30Haskell2010

Foundation.Tuple.Nth

a Generalized version of Fstable, Sndable, ..

Using this module is limited to GHC 7.10 and above.

  • 1 class
classclass KnownNat n => Nthable (n :: Nat) a where
#

A generalized version of indexed accessor allowing access to tuples n'th element.

Indexing starts at 1, as fst is used to get first element.

Associated types

Methods

Instances18Nthable, …
  • Nthable 1 (Tuple2 a b)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 1 (a, b)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 2 (Tuple2 a b)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 2 (a, b)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 1 (Tuple3 a b c)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 1 (a, b, c)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 2 (Tuple3 a b c)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 2 (a, b, c)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 3 (Tuple3 a b c)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 3 (a, b, c)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 1 (Tuple4 a b c d)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 1 (a, b, c, d)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 2 (Tuple4 a b c d)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 2 (a, b, c, d)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 3 (Tuple4 a b c d)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 3 (a, b, c, d)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 4 (Tuple4 a b c d)Defined in foundation-0.0.30 · Foundation.Tuple.Nth
  • Nthable 4 (a, b, c, d)Defined in foundation-0.0.30 · Foundation.Tuple.Nth