futhark-0.19.5: An optimising compiler for a functional, array-oriented language.
Safe HaskellTrustworthy
LanguageHaskell2010

Futhark.Internalise.Defunctionalise

Description

Defunctionalization of typed, monomorphic Futhark programs without modules.

Synopsis

Documentation

transformProg :: MonadFreshNames m => [ValBind] -> m [ValBind] Source #

Transform a list of top-level value bindings. May produce new lifted function definitions, which are placed in front of the resulting list of declarations.