@@ -55,6 +55,11 @@
|
||||
guile
|
||||
rust-analyzer
|
||||
wasmtime
|
||||
# bashInteractive is necessary to work around an
|
||||
# optparse-applicative issue
|
||||
#
|
||||
# https://github.com/pcapriotti/optparse-applicative/pull/408
|
||||
bashInteractive
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -77,8 +77,6 @@ inspectWasm wat = do
|
||||
let wasmtools_cfg
|
||||
= proc "wasm-tools" ["print", "-pf", "--print-operand-stack"
|
||||
,"--color", "always", "-"]
|
||||
-- & setStdin (byteStringInput . view lazy . encodeUtf8 $ wat)
|
||||
-- & setStdout byteStringOutput
|
||||
& setStdin createPipe
|
||||
& setStdout createPipe
|
||||
& setStderr inherit
|
||||
@@ -128,12 +126,12 @@ driver opts = do
|
||||
(eval >>> fmap writeObj
|
||||
>>> T.unwords
|
||||
>>> hPutStrLn FS.stdout)
|
||||
dumpOrRun False (rt_is #CPS)
|
||||
(pure closedCps)
|
||||
(const $ pure ())
|
||||
(CPS.evalProgram >>> fmap writeObj
|
||||
>>> T.unwords
|
||||
>>> hPutStrLn FS.stdout)
|
||||
when (rt_is #CPS) do
|
||||
closedCps
|
||||
& CPS.evalProgram
|
||||
& fmap writeObj
|
||||
& T.unwords
|
||||
& hPutStrLn FS.stdout
|
||||
dumpOrRun opts.inspectWasm (rt_is #Wasm)
|
||||
(lowerProgram cps)
|
||||
inspectWasm
|
||||
|
||||
@@ -53,6 +53,7 @@ parser = do
|
||||
, short 'o'
|
||||
, metavar "FILE"
|
||||
, value "-"
|
||||
, action "file"
|
||||
]
|
||||
sourceFile <- argument str . fold $
|
||||
[ metavar "FILE"
|
||||
|
||||
Reference in New Issue
Block a user