graphted-0.1.5.0: Graph indexed monads.

Copyright(c) Aaron Friel
LicenseBSD-3
MaintainerAaron Friel <mayreply@aaronfriel.com>
Stabilityunstable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Data.Pointed.Graph

Description

 

Synopsis

Documentation

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).

>>> :t gpoint @_ @(GWrapped Maybe) "Hello, World"
:: GWrapped Maybe () [Char]

Instances

Applicative f => GPointed * (GWrapped f) Source # 

Associated Types

type Pure (GWrapped f) (f :: GWrapped f -> * -> *) :: p Source #

Methods

gpoint :: a -> f (Pure (GWrapped f) f) a Source #