HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleghc-lib-parser-9.14.1.20251220GHC2021

GHC.Builtin.PrimOps

  • 5 types
  • 24 values
datadata PrimOp
#

Constructors

Instances3Eq, Ord, Outputable
  • Eq PrimOpDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Builtin.PrimOps
  • Ord PrimOpDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Builtin.PrimOps
  • Outputable PrimOpDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Builtin.PrimOps
valueprimOpIsDiv :: PrimOp -> Bool
#

True of dyadic operators that can fail only if the second arg is zero!

This function probably belongs in an automagically generated file.. but it's such a special case I thought I'd leave it here for now.

Indicate if a primop is really inline: that is, it isn't out-of-line and it isn't DataToTagOp which are two primops that evaluate their argument hence induce threadstackheap changes.