2af2da8e7aa7cf98689a12971f1805e4612560aa
[ghc.git] / compiler / main / GhcPlugins.hs
1 {-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
2
3 -- | This module is not used by GHC itself. Rather, it exports all of
4 -- the functions and types you are likely to need when writing a
5 -- plugin for GHC. So authors of plugins can probably get away simply
6 -- with saying "import GhcPlugins".
7 --
8 -- Particularly interesting modules for plugin writers include
9 -- "CoreSyn" and "CoreMonad".
10 module GhcPlugins(
11 module Plugins,
12 module RdrName, module OccName, module Name, module Var, module Id, module IdInfo,
13 module CoreMonad, module CoreSyn, module Literal, module DataCon,
14 module CoreUtils, module MkCore, module CoreFVs, module CoreSubst,
15 module Rules, module Annotations,
16 module DynFlags, module Packages,
17 module Module, module Type, module TyCon, module Coercion,
18 module TysWiredIn, module HscTypes, module BasicTypes,
19 module VarSet, module VarEnv, module NameSet, module NameEnv,
20 module UniqSet, module UniqFM, module FiniteMap,
21 module Util, module GHC.Serialized, module SrcLoc, module Outputable,
22 module UniqSupply, module Unique, module FastString
23 ) where
24
25 -- Plugin stuff itself
26 import Plugins
27
28 -- Variable naming
29 import RdrName
30 import OccName hiding ( varName {- conflicts with Var.varName -} )
31 import Name hiding ( varName {- reexport from OccName, conflicts with Var.varName -} )
32 import Var
33 import Id hiding ( lazySetIdInfo, setIdExported, setIdNotExported {- all three conflict with Var -} )
34 import IdInfo
35
36 -- Core
37 import CoreMonad
38 import CoreSyn
39 import Literal
40 import DataCon
41 import CoreUtils
42 import MkCore
43 import CoreFVs
44 import CoreSubst
45
46 -- Core "extras"
47 import Rules
48 import Annotations
49
50 -- Pipeline-related stuff
51 import DynFlags
52 import Packages
53
54 -- Important GHC types
55 import Module
56 import Type hiding {- conflict with CoreSubst -}
57 ( substTy, extendTvSubst, extendTvSubstList, isInScope )
58 import Coercion hiding {- conflict with CoreSubst -}
59 ( substCo )
60 import TyCon
61 import TysWiredIn
62 import HscTypes
63 import BasicTypes hiding ( Version {- conflicts with Packages.Version -} )
64
65 -- Collections and maps
66 import VarSet
67 import VarEnv
68 import NameSet
69 import NameEnv
70 import UniqSet
71 import UniqFM
72 -- Conflicts with UniqFM:
73 --import LazyUniqFM
74 import FiniteMap
75
76 -- Common utilities
77 import Util
78 import GHC.Serialized
79 import SrcLoc
80 import Outputable
81 import UniqSupply
82 import Unique ( Unique, Uniquable(..) )
83 import FastString