BiGUL-1.0.1: The Bidirectional Generic Update Language

Safe HaskellNone
LanguageHaskell2010

Generics.BiGUL.Lib

Description

A prelude for BiGUL programs.

Synopsis

Documentation

skip :: Eq v => v -> BiGUL s v Source #

Skip updating the source when the view is known to be a constant. Same as Skip . const.

(==>) :: (a -> b) -> a -> b infixr 0 Source #

A nicer notation for applying a branch constructing function to a branch body. Same as $.

emb :: Eq v => (s -> v) -> (s -> v -> s) -> BiGUL s v Source #

Embed a well-behaved pair of transformations into BiGUL.