futhark-0.25.15: An optimising compiler for a functional, array-oriented language.
Safe HaskellSafe-Inferred
LanguageGHC2021

Futhark.Internalise.ApplyTypeAbbrs

Description

A minor cleanup pass that runs after defunctorisation and applies any type abbreviations. After this, the program consists entirely value bindings.

Synopsis

Documentation

transformProg :: Monad m => [Dec] -> m [ValBind] Source #

Apply type abbreviations from a list of top-level declarations. A module-free input program is expected, so only value declarations and type declaration are accepted.