Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- class UniverseSome f where
- universeSome :: [Some f]
- class UniverseSome f => FiniteSome f where
- universeFSome :: [Some f]
- cardinalitySome :: Tagged (Some f) Natural
Documentation
class UniverseSome f where Source #
Auxiliary class to power
instance.
(There are no good reasons to use Universe
(Some
f)FlexibleInstances
).
Laws are induced via
instance. For example:Universe
(Some
f)
elem
xuniverse
==>elem
(Some
f)universeSome
As GEq
cannot be written for phantom Functor
s, e.g.
Const
or Proxy
, they cannot have
UniverseSome
instance either.
Note: The Some
type is imported from Data.Some, i.e. maybe
either from Data.Some.Newtype (default) or Data.Some.GADT modules.
universeSome :: [Some f] Source #
Instances
UniverseSome ((:~:) a) Source # | |
Defined in Data.Universe.Some universeSome :: [Some ((:~:) a)] Source # | |
(UniverseSome f, UniverseSome g) => UniverseSome (Sum f g) Source # | |
Defined in Data.Universe.Some universeSome :: [Some (Sum f g)] Source # |
class UniverseSome f => FiniteSome f where Source #
Nothing
universeFSome :: [Some f] Source #
Instances
FiniteSome ((:~:) a) Source # | |
Defined in Data.Universe.Some | |
(FiniteSome f, FiniteSome g) => FiniteSome (Sum f g) Source # | |
Defined in Data.Universe.Some |
Orphan instances
FiniteSome f => Finite (Some f) Source # | |
FiniteSome f => Finite (Some f) Source # | |
FiniteSome f => Finite (Some f) Source # | |
UniverseSome f => Universe (Some f) Source # | |
UniverseSome f => Universe (Some f) Source # | |
UniverseSome f => Universe (Some f) Source # | |