1
module UU.Parsing( module UU.Parsing.Derived
2
, module UU.Parsing.Interface
6
import UU.Parsing.Derived
7
import UU.Parsing.Interface
9
parseIO :: (Eq s, Show s, Symbol s) => Parser s a -> [s] -> IO a
10
parseIO = parseIOMessage showMessage
11
where showMessage (Msg expecting position action)
12
= let pos = case position of
13
Nothing -> "at end of file"
14
Just s -> case action of
15
Insert _ -> "before " ++ show s
16
Delete t -> "at " ++ show t
17
in "\n?? Error : " ++ pos ++
18
"\n?? Expecting : " ++ show expecting ++
19
"\n?? Repaired by: " ++ show action ++ "\n"
b'\\ No newline at end of file'