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 2d941a9 commit 97ca9beCopy full SHA for 97ca9be
compiler/app/Main.hs
@@ -198,8 +198,9 @@ fromStdinIR putFormattedLn = do
198
eof <- isEOF
199
if eof then exitSuccess else do
200
input <- BS.getLine
201
- if BS.isPrefixOf "!ECHO " input
202
- then let response = BS.drop 6 input
+ let echo = "!ECHO "
+ if BS.isPrefixOf echo input
203
+ then let response = BS.drop (BS.length echo) input
204
in do BS.putStrLn response
205
else
206
case decode input of
0 commit comments