packages feed

ghc-corroborate-0.1.0: src-ghc-flat/GHC/Corroborate/Wrap.hs

module GHC.Corroborate.Wrap (newUnique, newWantedCt, newGivenCt) where

import GHC.Corroborate
import GHC.TcPluginM.Extra (newGiven, newWanted)

newWantedCt :: CtLoc -> PredType -> TcPluginM Ct
newWantedCt loc = fmap mkNonCanonical . newWanted loc

newGivenCt :: CtLoc -> PredType -> EvTerm -> TcPluginM Ct
newGivenCt loc prd ev = mkNonCanonical <$> newGiven loc prd ev