| Copyright | (c) Fumiaki Kinoshita 2020 |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | fumiexcel@gmail.com |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
HumblePrelude.Plugin
Description
GHC plugin which adds imports to specified modules
Synopsis
- data Plugin
- importPlugin :: [String] -> Plugin
Documentation
Plugin is the compiler plugin data type. Try to avoid
constructing one of these directly, and just modify some fields of
defaultPlugin instead: this is to try and preserve source-code
compatibility when we add fields to this.
Nonetheless, this API is preliminary and highly likely to change in the future.
importPlugin :: [String] -> Plugin Source #
A GHC plugin that imports specified modules