Skip to content

Commit 28452e9

Browse files
committed
Force evaluation in check case
1 parent 6dd4928 commit 28452e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Hell.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ module Main (main) where
4747
#if __GLASGOW_HASKELL__ >= 906
4848
import Control.Monad
4949
#endif
50+
import Control.Exception (evaluate)
5051
import qualified Control.Concurrent as Concurrent
5152
import Control.Monad.Reader
5253
import Control.Monad.State.Strict
@@ -153,7 +154,7 @@ dispatch (Run filePath) = do
153154
action <- compileFile filePath
154155
eval () action
155156
dispatch (Check filePath) = do
156-
void $ compileFile filePath
157+
compileFile filePath >>= void . evaluate
157158

158159
--------------------------------------------------------------------------------
159160
-- Compiler

0 commit comments

Comments
 (0)