| Copyright | (C) 2013 Richard Eisenberg |
|---|---|
| License | BSD-style (see LICENSE) |
| Maintainer | Richard Eisenberg (rae@cs.brynmawr.edu) |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Singletons.TypeRepStar
Contents
Description
This module defines singleton instances making Typeable the singleton for
the kind *. The definitions don't fully line up with what is expected
within the singletons library, so expect unusual results!
- data family Sing (a :: k)
Documentation
The singleton kind-indexed data family.
Instances
| data Sing Bool # | |
| data Sing Ordering # | |
| data Sing * # | |
| data Sing Nat # | |
| data Sing Symbol # | |
| data Sing () # | |
| data Sing [a] # | |
| data Sing (Maybe a) # | |
| data Sing (NonEmpty a) # | |
| data Sing (Either a b) # | |
| data Sing (a, b) # | |
| data Sing ((~>) k1 k2) # | |
| data Sing (a, b, c) # | |
| data Sing (a, b, c, d) # | |
| data Sing (a, b, c, d, e) # | |
| data Sing (a, b, c, d, e, f) # | |
| data Sing (a, b, c, d, e, f, g) # | |
Here is the definition of the singleton for *:
data instance Sing (a :: *) where STypeRep :: Typeable a => Sing a
Instances for SingI, SingKind, SEq, SDecide, and TestCoercion are
also supplied.