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

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulesop-extras-0.4.1.1Haskell2010

Data.SOP.Counting

Type-level counting

Intended for unqualified import.

  • 2 types
  • 16 values
datadata AtMost (xs :: [Type]) a where
#

At most one value for each type level index

Constructors

Instances5Functor, Foldable, Traversable, Eq, Show
  • Functor (AtMost xs)Defined in sop-extras-0.4.1.1 · Data.SOP.Counting
  • Foldable (AtMost xs)Defined in sop-extras-0.4.1.1 · Data.SOP.Counting
  • Traversable (AtMost xs)Defined in sop-extras-0.4.1.1 · Data.SOP.Counting
  • Eq a => Eq (AtMost xs a)Defined in sop-extras-0.4.1.1 · Data.SOP.Counting
  • Show a => Show (AtMost xs a)Defined in sop-extras-0.4.1.1 · Data.SOP.Counting
newtypenewtype Exactly (xs :: [Type]) a
#

Constructors

Instances5Functor, Foldable, Traversable, Eq, Show
  • Functor (Exactly xs)Defined in sop-extras-0.4.1.1 · Data.SOP.Counting
  • Foldable (Exactly xs)Defined in sop-extras-0.4.1.1 · Data.SOP.Counting
  • Traversable (Exactly xs)Defined in sop-extras-0.4.1.1 · Data.SOP.Counting
  • Eq a => Eq (Exactly xs a)Defined in sop-extras-0.4.1.1 · Data.SOP.Counting
  • Show a => Show (Exactly xs a)Defined in sop-extras-0.4.1.1 · Data.SOP.Counting

Working with Exactly

9 declarations

Working with AtMost

7 declarations