Modulevector-0.13.2.0
Data.Vector.Fusion.Stream.Monadic
- 4 types
- 113 values
- Packagevector-0.13.2.0
- Exports117
- LicenceBSD-3-Clause
- SourceTypes.hs
SPEC is used by GHC in the SpecConstr pass in order to inform
the compiler when to be particularly aggressive. In particular, it
tells GHC to specialize regardless of size or the number of
specializations. However, not all loops fall into this category.
Libraries can specify this by using SPEC data type to inform which loops should be aggressively specialized. For example, instead of
loop x where loop arg = ...write
loop SPEC x where loop !_ arg = ...There is no semantic difference between SPEC and SPEC2,
we just need a type with two constructors lest it is optimised away
before SpecConstr.
This type is reexported from GHC.Exts since GHC 9.0 and base-4.15.
For compatibility with earlier releases import it from GHC.Internal.Types
in ghc-internal package.