Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- mkContext :: Config -> [(OccName, CType)] -> TcGblEnv -> HscEnv -> ExternalPackageState -> [Evidence] -> Context
- locallyDefinedMethods :: TcGblEnv -> [Id]
- splitId :: Id -> (OccName, CType)
- getFunBindId :: HsBindLR GhcTc GhcTc -> [Id]
- getInstance :: MonadReader Context m => Class -> [Type] -> m (Maybe (Class, PredType))
- hasClassInstance :: MonadReader Context m => PredType -> m Bool
Documentation
mkContext :: Config -> [(OccName, CType)] -> TcGblEnv -> HscEnv -> ExternalPackageState -> [Evidence] -> Context Source #
locallyDefinedMethods :: TcGblEnv -> [Id] Source #
getInstance :: MonadReader Context m => Class -> [Type] -> m (Maybe (Class, PredType)) Source #
hasClassInstance :: MonadReader Context m => PredType -> m Bool Source #
Like getInstance
, but only returns whether or not it succeeded. Can fail
fast, and uses a cached Theta from the context.