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.GroupTypes

Description

Grouping methods, both for types and core bindings.

Synopsis

Documentation

calcGroupOrder :: [Type] -> ([[Type]], Maybe Error) Source #

Calculate the order of types.

substituteTyCon :: [TypeScope] -> Type -> Type Source #

Functions doing the type substitutions.

getDataConArgs :: Type -> [Type] Source #

Get data constructor arguments from an algebraic type.

groupBinds Source #

Arguments

:: [[Type]]

Type groups.

-> [CoreBind]

Should be only NonRecs.

-> ([[CoreBind]], Maybe Error) 

Group bindings according to type groups.