Skip to content

Commit 97ca9be

Browse files
committed
Remove magic (dependant) constant
1 parent 2d941a9 commit 97ca9be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/app/Main.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,9 @@ fromStdinIR putFormattedLn = do
198198
eof <- isEOF
199199
if eof then exitSuccess else do
200200
input <- BS.getLine
201-
if BS.isPrefixOf "!ECHO " input
202-
then let response = BS.drop 6 input
201+
let echo = "!ECHO "
202+
if BS.isPrefixOf echo input
203+
then let response = BS.drop (BS.length echo) input
203204
in do BS.putStrLn response
204205
else
205206
case decode input of

0 commit comments

Comments
 (0)