summaryrefslogtreecommitdiffstats
path: root/src/main.hs
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2022-01-31 23:26:13 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2022-01-31 23:26:13 +0200
commite55a21280d255399e9d1f1979f2035fc9ead8666 (patch)
treefa2dc2b1bc456470fb8ece0c69133c533b601188 /src/main.hs
parentb235c2887ed60a8fd48263f6c53e90ee7e2073fd (diff)
Format strings with fmt
Diffstat (limited to 'src/main.hs')
-rw-r--r--src/main.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.hs b/src/main.hs
index e23dcf3..b596a84 100644
--- a/src/main.hs
+++ b/src/main.hs
@@ -38,11 +38,11 @@ bootstrap args = do
let config = getConfig initialConfig args
fileName <- getFileName config
- debugPrint config $ "executing file " ++ fileName ++ "\n"
+ debugPrint config $ fmt "executing file %%\n" [fileName]
source <- liftIO . readFile $ fileName
(parsedSource, strLitRefMap) <- parseSource source
- debugPrint config $ "parsed words:\n" ++ show parsedSource ++ "\n"
- debugPrint config $ "string literal refmap:\n" ++ show strLitRefMap ++ "\n"
+ debugPrint config $ fmt "parsed words:\n%%\n" [show parsedSource]
+ debugPrint config $ fmt "string literal refmap:\n%%\n" [show strLitRefMap]
debugPrint config "interpreter output:"
let initialState =
LState