refactor stack vm to use a basic block ish structure
build / build (push) Failing after 1m46s

This commit is contained in:
2026-08-24 01:12:34 -06:00
parent 8a20c4f4aa
commit 950d123760
21 changed files with 406 additions and 232 deletions
+13 -3
View File
@@ -1,7 +1,17 @@
{-# LANGUAGE DoAndIfThenElse #-}
module Main where
import Test.DocTest (mainFromCabal)
import System.Environment (getArgs)
import System.Environment (getArgs, lookupEnv)
import System.IO (stderr, hPutStrLn)
main :: IO ()
main = mainFromCabal "gyehoek" =<< getArgs
main = do
nix <- maybe False null <$> lookupEnv "GYEHOEK_IN_NIX_BUILD"
if nix then do
hPutStrLn stderr "\
\skipping doctests in Nix build environment. \
\see https://github.com/pcapriotti/optparse-applicative/pull/408."
else
mainFromCabal "gyehoek" =<< getArgs