| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
NewtypeZoo.Available
Description
Indicate that something is Available.
Synopsis
- newtype Available a = Available a
- _theAvailable :: Available x -> x
- theAvailable :: forall a b p f. (Profunctor p, Functor f) => p a (f b) -> p (Available a) (f (Available b))
- newtype AvailableIn ctx a = AvailableIn a
- _theAvailableIn :: AvailableIn ctx x -> x
- theAvailableIn :: forall ctx a b p f. (Profunctor p, Functor f) => p a (f b) -> p (AvailableIn ctx a) (f (AvailableIn ctx b))
Documentation
A wrapper for something that is Available.
Constructors
| Available a |
Instances
_theAvailable :: Available x -> x Source #
An accessor function for something Available.
theAvailable :: forall a b p f. (Profunctor p, Functor f) => p a (f b) -> p (Available a) (f (Available b)) Source #
A lens for something Available.
newtype AvailableIn ctx a Source #
A wrapper for something that is AvailableIn with respect to some context
indicated by a (phantom-) type.
Constructors
| AvailableIn a |
Instances
_theAvailableIn :: AvailableIn ctx x -> x Source #
An accessor function for something AvailableIn.
theAvailableIn :: forall ctx a b p f. (Profunctor p, Functor f) => p a (f b) -> p (AvailableIn ctx a) (f (AvailableIn ctx b)) Source #
A lens for something AvailableIn.