-------------------
-- PARSE
-------------------
- inp <- readFile (expectJust "hscCoreFrontEnd" (ms_hspp_file mod_summary))
+ inp <- readFile (ms_hspp_file mod_summary)
case parseCore inp 1 of
FailP s
-> do errorMsg (hsc_dflags hsc_env) (text s{-ToDo: wrong-})
-- PARSE
-------------------
let dflags = hsc_dflags hsc_env
- hspp_file = expectJust "hscFileFrontEnd" (ms_hspp_file mod_summary)
+ hspp_file = ms_hspp_file mod_summary
hspp_buf = ms_hspp_buf mod_summary
maybe_parsed <- myParseModule dflags hspp_file hspp_buf
case maybe_parsed of
-- PARSE
-------------------
; let dflags = hsc_dflags hsc_env
- hspp_file = expectJust "hscFileFrontEnd" (ms_hspp_file mod_summary)
+ hspp_file = ms_hspp_file mod_summary
hspp_buf = ms_hspp_buf mod_summary
; maybe_parsed <- myParseModule dflags hspp_file hspp_buf