, error -- :: String -> a
, assertError -- :: String -> Bool -> a -> a
+
) where
import PrelBase
-- Need to define a "build" to avoid undefined symbol
-- in this module to avoid .hi proliferation.
-build = error "GHCbase.build"
-augment = error "GHCbase.augment"
--{-# GENERATE_SPECS build a #-}
--build :: ((a -> [a] -> [a]) -> [a] -> [a]) -> [a]
--build g = g (:) []
+--build = error "GHCbase.build"
+--augment = error "GHCbase.augment"
\end{code}
%*********************************************************
location message details
\begin{code}
+untangle :: String -> String -> String
untangle coded message
= location
++ ": "
++ "\n"
where
(location, details)
- = case (span not_bar coded) of { (location, rest) ->
+ = case (span not_bar coded) of { (loc, rest) ->
case rest of
- ('|':details) -> (location, ' ' : details)
- _ -> (location, "")
+ ('|':det) -> (loc, ' ' : det)
+ _ -> (loc, "")
}
not_bar c = c /= '|'
\end{code}