futhark-0.9.1: An optimising compiler for a functional, array-oriented language.

Safe HaskellNone
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.