recursion-2.2.4.3: A recursion schemes library for Haskell.
Safe HaskellNone
LanguageHaskell2010

Control.Recursion.GHC

Description

This module contains GHC-specific functions

Synopsis

Documentation

transverse :: (Recursive s, Corecursive t, Functor f) => (forall a. Base s (f a) -> f (Base t a)) -> s -> f t Source #

Should satisfy:

transverse sequenceA = pure

cotransverse :: (Recursive s, Corecursive t, Functor f) => (forall a. f (Base s a) -> Base t (f a)) -> f s -> t Source #

hoist :: (Recursive s, Corecursive t) => (forall a. Base s a -> Base t a) -> s -> t Source #