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

Safe HaskellSafe
LanguageHaskell98

DDC.Core.Transform.FoldCase

Documentation

data Config Source

Constructors

Config 

Fields

configCaseOfConstructor :: Bool

Perform the case-of-constructor transformation.

configCaseOfCase :: Bool

Perform the case-of-case transformation. Not implemented yet.

foldCase :: (Ord n, TransformDownMX (FoldCase a n) c) => Config -> c a n -> c a n Source

foldCaseX :: Ord n => Config -> Exp a n -> FoldCase a n (Exp a n) Source