considering scrapping this parser...
This commit is contained in:
parent
87ca7637d8
commit
8430ca214e
5 changed files with 71 additions and 75 deletions
|
@ -18,9 +18,9 @@ main = do
|
|||
-- Attempt to read the file
|
||||
contents <- catch (readFile filePath) handleReadError
|
||||
putStrLn "File Contents:"
|
||||
putStrLn $ Haskellator.preProcessDiscardComments contents
|
||||
putStrLn $ ppShow $ Haskellator.runParser contents
|
||||
[] -> putStrLn "cabal run Haskellator -- <file-path>"
|
||||
putStrLn $ ppShow Haskellator.val
|
||||
-- putStrLn $ ppShow Haskellator.val
|
||||
|
||||
-- Handle potential file reading errors
|
||||
handleReadError :: IOException -> IO String
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue