# these

> Haskell's either-or-both data type, with Align for zipping with padding

Source: https://talira.ai/catalog/these-y1v47q74
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / functional programming](https://talira.ai/categories/libraries/functional-programming), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Oleg Grenrus](https://talira.ai/orgs/oleg-grenrus.md)

these is a Haskell library for the `These a b` type, which holds a value of type `a`, a value of type `b`, or both, with functions in `Data.These` like those in `Data.Either`. Its repository also publishes semialign, whose `Align` class zips two structures with padding (a structural union, so the result is as long as the longer input) and `Unalign` undoes it; monad-chronicle, a `ChronicleT` monad transformer that is a hybrid of error and writer; and these-lens and these-optics with lens and optics combinators for `These`.

## Links

- GitHub: https://github.com/haskellari/these

## Problems it solves

- zip two lists of different lengths in Haskell without dropping the extra elements
- a Haskell result type that can carry warnings and a value at the same time
- represent a value that may be on the left, the right or both sides in Haskell

## Features

- These a b: either a, b, or both
- Align and Unalign for zipping with padding
- ChronicleT, an error/writer hybrid monad transformer
- lens and optics combinators

## Trust

Overall: 0.28 out of 1.
Signals: maintenance 0.27, adoption 0.42, momentum 0.07, community 0.54, backing 0.30, extensibility 0.00.

- 122 GitHub stars
- 21 contributors
- backed by Oleg Grenrus

Warnings:

- last commit 6 months ago

## Sources

[^1]: https://github.com/haskellari/these/blob/master/these/LICENSE (checked 28 Nov 2026)
[^2]: https://github.com/haskellari/these/blob/master/these/these.cabal (checked 28 Nov 2026)
