seqaid: Dynamic strictness control, including space leak repair
Seqaid is a GHC plugin for non-invasive auto-instrumentation of dynamic strictness (and parallelism) control, shortly to include optimisation for automated space leak relief using minimal strictification. [The optimiser is still in development however.]
Refer to the seqaid homepage for more information.
[Skip to Readme]
|Versions [faq]||0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6.0, 0.1.7.0, 0.2.0.0, 0.2.1.0, 0.2.1.1, 0.3.0.0, 0.3.0.1, 0.4.0.0|
|Dependencies||array, base (<5), Cabal, containers, deepseq-bounded, directory, generics-sop, ghc (>=7.4), hashable, hashtables, modulespection, mtl, process, regex-base, regex-pcre, syb, template-haskell, temporary, th-expand-syns [details]|
|Author||Andrew G. Seniuk|
|Maintainer||Andrew Seniuk <firstname.lastname@example.org>|
|Bug tracker||Andrew Seniuk <email@example.com>|
|Uploaded||by AndrewSeniuk at Fri Dec 19 12:49:38 UTC 2014|
|Downloads||6146 total (428 in the last 30 days)|
|Rating||(no votes yet) [estimated by Bayesian average]|
Docs uploaded by user
Build status unknown [no reports yet]
If we can prevent inling of injected binds (without requiring user edits), that would probably be a good trade off in terms of lost optimiser oppportunities in exchange for assurance that the bind won't be inlined. This didn't work, and is a poor solution anyway.
Like NFDATAN_ONLY, but for newer Seqable module.
Actually this is just preparatory, haven't gone down this road far yet. (We would like a TH.Type to Type.Type conversion function in the GHC API. Then we'd just send the list of Type.Type for direct use by the Core-plugin downstream).
Rather than choose types to seqinj for based on the types of the top-level binds, use seqaidpp to parse the types from seqaid.config. This stays on perpetually, finally, and could be removed soon.
If True, then TH/modulespection will be used as it has been, to blanket-inject all top-level functions (at least, those not explicitly or implicitly excluded). Now, if False, only RHS's with result types in the "types" list for the module (in seqaid.config) will be wrapped (again, at least those not explicitly or implicitly excluded).
This is the only working mode in the first release. (And it only works when tested on the "leaky" package.) The switch exists to exclude hashable/hashtables deps (and subdeps) from the first release, while I can continue to work on this aspect in the development head.
When set, every call to seqaidDispatch emits a line of info.
If have to inject a class and instance anyway to evade DCE, no need for the old top-level seqinj_ declarations (we hope...).
To simplify debugging.
Include Typeable instance for (show . typeOf) in seqaidDispatch
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
For package maintainers and hackage trustees