Skip to content

Commit

Permalink
Force evaluation in check case
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdone committed Jan 20, 2025
1 parent 6dd4928 commit 28452e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Hell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module Main (main) where
#if __GLASGOW_HASKELL__ >= 906
import Control.Monad
#endif
import Control.Exception (evaluate)
import qualified Control.Concurrent as Concurrent
import Control.Monad.Reader
import Control.Monad.State.Strict
Expand Down Expand Up @@ -153,7 +154,7 @@ dispatch (Run filePath) = do
action <- compileFile filePath
eval () action
dispatch (Check filePath) = do
void $ compileFile filePath
compileFile filePath >>= void . evaluate

--------------------------------------------------------------------------------
-- Compiler
Expand Down

0 comments on commit 28452e9

Please sign in to comment.