summaryrefslogtreecommitdiff
path: root/compiler/main/GHC.hs
diff options
context:
space:
mode:
authorXavier Denis <xldenis@gmail.com>2018-10-20 01:36:23 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-06-04 14:41:29 -0400
commit002594b731c40334b33eb883275e9c274c68e9ac (patch)
tree3a35bccefc9f336cf42a37006ec90f3cebd2897c /compiler/main/GHC.hs
parent114b014f7ed346727241c78ef3e0bf965d94edfc (diff)
downloadhaskell-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.hs2
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(..),