some: Existential type: Some

[ bsd3, data, dependent-types, library ] [ Propose Tags ] [ Report a vulnerability ]

This library defines an existential type Some.

data Some f where
    Some :: f a -> Some f

in few variants, and utilities to work with it.

If you are unsure which variant to use, use the one in Data.Some module.

Flags

Manual Flags

NameDescriptionDefault
newtype-unsafe

Use implementation using newtype and unsafe Any, instead of GADT

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 1, 1.0.0.1, 1.0.0.2, 1.0.0.3, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.4.1, 1.0.5, 1.0.6, 1.1 (info)
Change log ChangeLog.md
Dependencies base (>=4.18 && <4.23), base-orphans (>=0.9.1 && <0.10), deepseq (>=1.4.8.1 && <1.6) [details]
Tested with ghc ==9.6.7 || ==9.8.4 || ==9.10.2 || ==9.12.2 || ==9.14.1
License BSD-3-Clause
Author James Cook <mokus@deepbondi.net>, Oleg Grenrus <oleg.grenrus@iki.fi>
Maintainer Oleg Grenrus <oleg.grenrus@iki.fi>
Uploaded by phadej at 2026-05-10T17:20:15Z
Category Data, Dependent Types
Home page https://github.com/haskellari/some
Source repo head: git clone https://github.com/haskellari/some.git(some)
Distributions Arch:1.0.6, LTSHaskell:1.0.6, Stackage:1.0.6
Reverse Dependencies 38 direct, 8696 indirect [details]
Downloads 29585 total (33 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-05-10 [all 1 reports]