Demand(..),
wwLazy, wwStrict, wwUnpackData, wwUnpackNew, wwPrim, wwEnum,
- isStrict, isLazy,
+ isStrict, isLazy, isPrim,
pprDemands
) where
isStrict WwEnum = True
isStrict WwPrim = True
isStrict _ = False
+
+isPrim :: Demand -> Bool
+isPrim WwPrim = True
+isPrim other = False
\end{code}
\begin{code}