Copyright | (C) Frank Staals |
---|---|
License | see the LICENSE file |
Maintainer | Frank Staals |
Safe Haskell | None |
Language | GHC2021 |
HGeometry.Small.TwoOrThree
Description
A type expressing that some value may have two or three values
Documentation
newtype TwoOrThree a Source #
Either two or three elements
Constructors
TwoOrThree (Either (Two a) (Three a)) |
Instances
- Strict pair whose elements are of the same type.
Strict pair with both items the same