Add hugsprimError, hugsprimCompAux.
hugsprimMkIO,
hugsprimCreateAdjThunk,
hugsprimUnpackString,
- hugsprimPmFail
+ hugsprimPmFail,
+ hugsprimCompAux,
+ hugsprimError
)
where
import PrelGHC
hugsprimPmFail :: a
hugsprimPmFail = error "Pattern Match Failure"
+hugsprimCompAux :: Ord a => a -> a -> Ordering -> Ordering
+hugsprimCompAux x y o = case compare x y of EQ -> o; LT -> LT; GT -> GT
+
+hugsprimError :: String -> a
+hugsprimError s = error s
-- used when Hugs invokes top level function
{-