ddc-core-simpl-0.4.1.2: Disciplined Disciple Compiler code transformations.

Safe HaskellSafe-Inferred

DDC.Core.Transform.Flatten

Description

Flattening nested let and case expressions.

Synopsis

Documentation

flatten :: Ord n => TransformUpMX Identity c => c a n -> c a nSource

Flatten binding structure in a thing.

Flattens nested let-expressions, and single alternative let-case expressions.