We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6249647 commit 73d0632Copy full SHA for 73d0632
compiler/app/Main.hs
@@ -199,8 +199,9 @@ fromStdinIR putFormattedLn = do
199
eof <- isEOF
200
if eof then exitSuccess else do
201
input <- BS.getLine
202
- if BS.isPrefixOf "!ECHO " input
203
- then let response = BS.drop 6 input
+ let echo = "!ECHO "
+ if BS.isPrefixOf echo input
204
+ then let response = BS.drop (BS.length echo) input
205
in do BSChar8.putStrLn response
206
else
207
case decode input of
0 commit comments