case writeArray# to# cur# ele st# of { s1# ->
copy (cur# +# 1#) end# from# to# s1#
}}
-
\end{code}
import PrelBase
import PrelErr ( parError, seqError )
-import PrelST ( ST(..), STret(..), liftST )
+import PrelST ( liftST )
import PrelIOBase ( IO(..), MVar(..), unsafePerformIO )
import PrelBase ( Int(..) )
irrefutPatError s = throw (PatternMatchFail (untangle s "Irrefutable pattern failed for pattern"))
nonExhaustiveGuardsError s = throw (NonExhaustiveGuards (untangle s "Non-exhaustive guards in"))
patError s = throw (PatternMatchFail (untangle s "Non-exhaustive patterns in"))
-recSelError s = throw (RecSelError (untangle s "Missing field in record selection:"))
-recConError s = throw (RecConError (untangle s "Missing field in record construction:"))
-recUpdError s = throw (RecUpdError (untangle s "Record to doesn't contain field(s) to be updated"))
+recSelError s = throw (RecSelError (untangle s "Missing field in record selection"))
+recConError s = throw (RecConError (untangle s "Missing field in record construction"))
+recUpdError s = throw (RecUpdError (untangle s "Record doesn't contain field(s) to be updated"))
assertError :: String -> Bool -> a -> a
= location
++ ": "
++ message
- ++ details
+ ++ "\'" ++ details ++ "\'"
++ "\n"
where
(location, details)
#else
#define FILE_OBJECT Addr
#endif
-
\end{code}
%*********************************************************
writeHandle (Handle h) hc = stToIO (writeVar h hc)
#endif
-
\end{code}
nullFile__ is only used for closed handles, plugging it in as a null
-- Everything from these modules
module PrelList,
+
-- Everything corresponding to the Report's PreludeText
ReadS, ShowS,
Read(readsPrec, readList),