# tagged

> Haskell phantom-type tags, so functions don't take dummy arguments just to pick a type

Source: https://talira.ai/catalog/tagged-kb5w5jky
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / general purpose](https://talira.ai/categories/libraries/general-purpose), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Edward Kmett](https://talira.ai/orgs/edward-kmett.md)

tagged is a small Haskell library of values that carry an extra phantom type tag. Its Data.Tagged module lets a function return a value labelled with the type it belongs to, in plain Haskell 98, instead of taking an unused dummy argument only to choose the type. It's by Edward Kmett and tested on GHC 8.0 through 9.14.

## Links

- GitHub: https://github.com/ekmett/tagged
- Docs: https://hackage.haskell.org/package/tagged

## Problems it solves

- stop passing undefined as a dummy argument just to pick a type in Haskell
- attach a type-level label to a value in Haskell
- write a Haskell function that returns a value for a type without a proxy argument

## Features

- Tagged newtype for values labelled with a phantom type
- Haskell 98, with no language extensions needed
- Tested on GHC 8.0 to 9.14

## Trust

Overall: 0.39 out of 1.
Signals: maintenance 0.62, adoption 0.32, momentum 0.02, community 0.57, backing 0.30, extensibility 0.00.

- last commit 18 days ago
- 3 commits in the last 90 days
- 41 GitHub stars
- 25 contributors
- backed by Edward Kmett

## Sources

[^1]: https://github.com/ekmett/tagged/blob/master/LICENSE (checked 28 Nov 2026)
