HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

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