some progress but still need to test against corpus

This commit is contained in:
Yehowshua Immanuel 2024-11-22 19:06:15 -05:00
parent 7f8168720d
commit bcd5d32290
5 changed files with 91 additions and 15 deletions

View file

@ -4,7 +4,7 @@ import System.Environment (getArgs)
import System.IO
import Control.Exception (catch, IOException)
import qualified Haskellator
import Haskellator
main :: IO ()
main = do
@ -19,6 +19,7 @@ main = do
putStrLn "File Contents:"
putStrLn contents
[] -> putStrLn "cabal run Haskellator -- <file-path>"
putStrLn $ show Haskellator.val
-- Handle potential file reading errors
handleReadError :: IOException -> IO String