humble-prelude-0.2: Redefinition-free prelude alternative

Copyright(c) Fumiaki Kinoshita 2020
LicenseBSD-style (see the file LICENSE)
Maintainerfumiexcel@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

HumblePrelude.Plugin

Description

GHC plugin which adds imports to specified modules

Synopsis

Documentation

data Plugin #

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