music-score-1.9.0: Musical score and part representation.

Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Functor.Context

Synopsis

Documentation

newtype Ctxt a Source

A value with a possible predecessor and successor. Can be used to traverse values with their immediate context.

Constructors

Ctxt 

Fields

getCtxt :: (Maybe a, a, Maybe a)
 

Instances

Functor Ctxt 
Applicative Ctxt 
Eq a => Eq (Ctxt a) 
Ord a => Ord (Ctxt a) 
Show a => Show (Ctxt a) 
Wrapped (Ctxt a) 
Transformable a => Transformable (Ctxt a) 
Rewrapped (Ctxt a) (Ctxt b) 
type Unwrapped (Ctxt a) = (Maybe a, a, Maybe a) 

toCtxt :: (Maybe a, a, Maybe a) -> Ctxt a Source

mapCtxt :: (a -> b) -> Ctxt a -> Ctxt b Source

addCtxt :: [a] -> [Ctxt a] Source