derive-storable-plugin-0.2.3.7: GHC core plugin supporting the derive-storable package.
Copyright(c) Mateusz Kłoczko 2016
LicenseMIT
Maintainermateusz.p.kloczko@gmail.com
Stabilityexperimental
PortabilityGHC-only
Safe HaskellSafe-Inferred
LanguageHaskell2010

Foreign.Storable.Generic.Plugin.Internal

Description

Contains methods for calculating type ordering and performing the compile-substitution optimisation.

Synopsis

Documentation

groupTypes :: Flags -> IORef [[Type]] -> ModGuts -> CoreM ModGuts Source #

Find GStorable identifiers, obtain their types, and calculate the order of compilation.

gstorableSubstitution Source #

Arguments

:: Flags

Verbosity and ToCrash options.

-> IORef [[Type]]

Reference to grouped types.

-> ModGuts

Information about compiled module.

-> CoreM ModGuts

Information about compiled module, with GStorable optimisations.

Do the optimisation for GStorable bindings.