instant-zipper-0.0.0: Heterogenous Zipper in Instant Generics

Generics.Instant.Zipper

Synopsis

Documentation

class Family f Source

Families

class (Representable f, Typeable f, Fillable (Rep f), Firstable (Rep f), Nextable (Rep f), Lastable (Rep f), Prevable (Rep f)) => Zipper f Source

Zipper

enter :: Zipper h => h -> Loc h h EpsilonSource

leave :: Zipper h => Loc h r c -> rSource

up :: (Zipper h, Zipper h') => Loc h r (h' :<: c) -> Loc h' r cSource

down :: (Zipper h, Zipper h', Family f, Show (f h')) => f h' -> Loc h r c -> ZipperR (Loc h' r (h :<: c))Source

downR :: (Zipper h, Zipper h', Family f, Show (f h')) => f h' -> Loc h r c -> ZipperR (Loc h' r (h :<: c))Source

left :: (Zipper h, Zipper h', Family f, Show (f h')) => f h' -> Loc h r (c :<: cs) -> ZipperR (Loc h' r (c :<: cs))Source

right :: (Zipper h, Zipper h', Family f, Show (f h')) => f h' -> Loc h r (c :<: cs) -> ZipperR (Loc h' r (c :<: cs))Source

down' :: (Zipper h, Zipper h') => h' -> Loc h r c -> ZipperR (Loc h' r (h :<: c))Source

Down

downR' :: (Zipper h, Zipper h') => h' -> Loc h r c -> ZipperR (Loc h' r (h :<: c))Source

left' :: (Zipper h, Zipper h') => h' -> Loc h r (c :<: cs) -> ZipperR (Loc h' r (c :<: cs))Source

right' :: (Zipper h, Zipper h') => h' -> Loc h r (c :<: cs) -> ZipperR (Loc h' r (c :<: cs))Source

get :: Loc h r c -> hSource

Navigation

set :: h -> Loc h r c -> Loc h r cSource

data PrimFam a whereSource

Constructors

Char :: PrimFam Char 
Int :: PrimFam Int 
Float :: PrimFam Float 
List :: (Family f, Show (f a)) => f a -> PrimFam [a] 

Instances