diff options
author | Xavier Denis <xldenis@gmail.com> | 2018-10-20 01:36:23 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-06-04 14:41:29 -0400 |
commit | 002594b731c40334b33eb883275e9c274c68e9ac (patch) | |
tree | 3a35bccefc9f336cf42a37006ec90f3cebd2897c /compiler/main/GHC.hs | |
parent | 114b014f7ed346727241c78ef3e0bf965d94edfc (diff) | |
download | haskell-002594b731c40334b33eb883275e9c274c68e9ac.tar.gz |
Add GHCi :instances command
This commit adds the `:instances` command to ghci following proosal
number 41.
This makes it possible to query which instances are available to a given
type.
The output of this command is all the possible instances with type
variables and constraints instantiated.
Diffstat (limited to 'compiler/main/GHC.hs')
-rw-r--r-- | compiler/main/GHC.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs index 9fa8911d76..d89ccf8dea 100644 --- a/compiler/main/GHC.hs +++ b/compiler/main/GHC.hs @@ -219,6 +219,8 @@ module GHC ( Kind, PredType, ThetaType, pprForAll, pprThetaArrowTy, + parseInstanceHead, + getInstancesForType, -- ** Entities TyThing(..), |