graphted-0.1.5.0: Graph indexed monads.
Data.Pointed.Graph
Description
Synopsis
class GPointed f where Source #
Graph indexed pointed functor.
Minimal complete definition
gpoint
Associated Types
type Pure f :: p Source #
The pure element of the graph index.
Methods
gpoint :: forall a. a -> f (Pure f) a Source #
Return a pointed functor indexed by the Pure type instance (pure).
Pure
pure
>>> :t gpoint @_ @(GWrapped Maybe) "Hello, World" :: GWrapped Maybe () [Char]
>>>
:t gpoint @_ @(GWrapped Maybe) "Hello, World"
Instances
type Pure (GWrapped f) (f :: GWrapped f -> * -> *) :: p Source #
gpoint :: a -> f (Pure (GWrapped f) f) a Source #