@@ -240,8 +240,8 @@ eatMultiCommentHelp pos end row col openComments =
240240-- DOCUMENTATION COMMENT
241241
242242
243−docComment :: P.Parser E.Decl ()
244−docComment =
243+docComment :: (Row -> Col -> x) -> (Row -> Col -> x) -> (Row -> Col -> x) -> P.Parser x ()
244+docComment toExpectation toTabError toEndlessError =
245245 P.Parser $ \(P.State pos end indent row col) cok _ cerr eerr ->
246246 let
247247 !pos3 = plusPtr pos 3
@@ -262,7 +262,7 @@ docComment =
262262 in
263263 cok () newState
264264
265− MultiTab -> cerr newRow newCol (E.DeclSpace E.HasTab)
266− MultiEndless -> cerr row col E.EndlessDocComment
265+ MultiTab -> cerr newRow newCol toTabError
266+ MultiEndless -> cerr row col toEndlessError
267267 else
268− eerr row col E.DeclDeadend
268+ eerr row col toExpectation