fix: include: report read failures with correct line number

This commit is contained in:
Simon Michael 2025-07-15 10:50:41 -07:00
parent 2dcfe22c89
commit 3741f9f030

View File

@ -346,6 +346,7 @@ includedirectivep = do
Just fmt -> map ((show fmt++":")++) paths' Just fmt -> map ((show fmt++":")++) paths'
-- parse each one, as if inlined here -- parse each one, as if inlined here
setOffset off
forM_ prefixedpaths $ parseIncludedFile off pos forM_ prefixedpaths $ parseIncludedFile off pos
where where