remove wat tests
build / build (push) Successful in 1m4s

This commit is contained in:
2026-07-18 17:54:35 -06:00
parent 6774c08efb
commit 8120e21eae
9 changed files with 60 additions and 438 deletions
+5 -1
View File
@@ -67,10 +67,14 @@ withFile "-" FS.ReadMode k = k FS.stdin
withFile "-" (FS.WriteMode; FS.AppendMode) k = k FS.stdout
withFile f m k = FS.withFile f m k
fileName :: FilePath -> FilePath
fileName "-" = "<interactive>"
fileName e = e
readScm :: FileSystem :> es => FilePath -> Eff es Scm.Program
readScm f =
withFile f FS.ReadMode $ \h ->
Sexp.parseSexps @Scm.CommandOrDef f <$> hGetContents h
Sexp.parseSexps @Scm.CommandOrDef (fileName f) <$> hGetContents h
>>= either error (pure . Scm.MkProgram)
driver