X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fprelude%2FPrimOp.lhs;h=4ac157770703a7ca08057df2fa92ee06c4cda561;hp=6338941662520431a85142045ab1e300da32c2dc;hb=2662dbc5b2c30fc11ccb99e7f9b2dba794d680ba;hpb=8a3ed3364fbc74b1f1b87b049737da2b251f92df diff --git a/compiler/prelude/PrimOp.lhs b/compiler/prelude/PrimOp.lhs index 6338941..4ac1577 100644 --- a/compiler/prelude/PrimOp.lhs +++ b/compiler/prelude/PrimOp.lhs @@ -21,7 +21,9 @@ module PrimOp ( primOpOutOfLine, primOpNeedsWrapper, primOpOkForSpeculation, primOpIsCheap, primOpIsDupable, - getPrimOpResultInfo, PrimOpResultInfo(..) + getPrimOpResultInfo, PrimOpResultInfo(..), + + PrimCall(..) ) where #include "HsVersions.h" @@ -29,13 +31,14 @@ module PrimOp ( import TysPrim import TysWiredIn -import NewDemand +import Demand import Var ( TyVar ) import OccName ( OccName, pprOccName, mkVarOccFS ) import TyCon ( TyCon, isPrimTyCon, tyConPrimRep, PrimRep(..) ) import Type ( Type, mkForAllTys, mkFunTy, mkFunTys, tyConAppTyCon, typePrimRep ) import BasicTypes ( Arity, Boxity(..) ) +import ForeignCall ( CLabelString ) import Unique ( Unique, mkPrimOpIdUnique ) import Outputable import FastTypes @@ -506,3 +509,17 @@ pprPrimOp :: PrimOp -> SDoc pprPrimOp other_op = pprOccName (primOpOcc other_op) \end{code} + +%************************************************************************ +%* * +\subsubsection[PrimCall]{User-imported primitive calls} +%* * +%************************************************************************ + +\begin{code} +newtype PrimCall = PrimCall CLabelString + +instance Outputable PrimCall where + ppr (PrimCall lbl) = ppr lbl + +\end{code}