summaryrefslogtreecommitdiff
path: root/compiler/GHC/Tc/Errors/Hole.hs-boot
diff options
context:
space:
mode:
authorMatthías Páll Gissurarson <mpg@mpg.is>2021-05-19 01:31:52 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-05-20 18:09:50 -0400
commit5dcb8619f67b8f9a30bde0519a14d3b8c6b4ee1f (patch)
treedfb082adf0c6a9c262679db5e48fc23c58f83090 /compiler/GHC/Tc/Errors/Hole.hs-boot
parent649d63db1dc543b7cbba22e14375ff2766edd664 (diff)
downloadhaskell-5dcb8619f67b8f9a30bde0519a14d3b8c6b4ee1f.tar.gz
Add exports to GHC.Tc.Errors.Hole (fixes #19864)
Diffstat (limited to 'compiler/GHC/Tc/Errors/Hole.hs-boot')
-rw-r--r--compiler/GHC/Tc/Errors/Hole.hs-boot32
1 files changed, 31 insertions, 1 deletions
diff --git a/compiler/GHC/Tc/Errors/Hole.hs-boot b/compiler/GHC/Tc/Errors/Hole.hs-boot
index 215f319c79..8c4bfce546 100644
--- a/compiler/GHC/Tc/Errors/Hole.hs-boot
+++ b/compiler/GHC/Tc/Errors/Hole.hs-boot
@@ -4,10 +4,40 @@
-- + which calls 'GHC.Tc.Solver.simpl_top'
module GHC.Tc.Errors.Hole where
+import GHC.Types.Var ( Id )
import GHC.Tc.Types ( TcM )
-import GHC.Tc.Types.Constraint ( Ct, Hole, Implication )
+import GHC.Tc.Types.Constraint ( Ct, CtLoc, Hole, Implication )
import GHC.Utils.Outputable ( SDoc )
import GHC.Types.Var.Env ( TidyEnv )
+import GHC.Tc.Errors.Hole.FitTypes ( HoleFit, TypedHole, HoleFitCandidate )
+import GHC.Tc.Utils.TcType ( TcType, TcSigmaType, Type, TcTyVar )
+import GHC.Tc.Types.Evidence ( HsWrapper )
+import GHC.Utils.FV ( FV )
+import Data.Bool ( Bool )
+import Data.Maybe ( Maybe )
+import Data.Int ( Int )
findValidHoleFits :: TidyEnv -> [Implication] -> [Ct] -> Hole
-> TcM (TidyEnv, SDoc)
+
+tcCheckHoleFit :: TypedHole -> TcSigmaType -> TcSigmaType
+ -> TcM (Bool, HsWrapper)
+
+withoutUnification :: FV -> TcM a -> TcM a
+tcSubsumes :: TcSigmaType -> TcSigmaType -> TcM Bool
+tcFilterHoleFits :: Maybe Int -> TypedHole -> (TcType, [TcTyVar])
+ -> [HoleFitCandidate] -> TcM (Bool, [HoleFit])
+getLocalBindings :: TidyEnv -> CtLoc -> TcM [Id]
+addHoleFitDocs :: [HoleFit] -> TcM [HoleFit]
+
+data HoleFitDispConfig
+data HoleFitSortingAlg
+
+pprHoleFit :: HoleFitDispConfig -> HoleFit -> SDoc
+getHoleFitSortingAlg :: TcM HoleFitSortingAlg
+getHoleFitDispConfig :: TcM HoleFitDispConfig
+
+relevantCts :: Type -> [Ct] -> [Ct]
+zonkSubs :: TidyEnv -> [HoleFit] -> TcM (TidyEnv, [HoleFit])
+sortHoleFitsBySize :: [HoleFit] -> TcM [HoleFit]
+sortHoleFitsByGraph :: [HoleFit] -> TcM [HoleFit]