ref: d995cd0c54fdc270c1c8f130041fa2f065286d3d
parent: d93dc04067fa92b9a58299a42fc73282e1836d7b
author: Lennart Augustsson <lennart@augustsson.net>
date: Fri Sep 1 12:26:50 EDT 2023
Make it compile with mhs
--- a/Tools/Addcombs.hs
+++ b/Tools/Addcombs.hs
@@ -1,4 +1,6 @@
-module Main where
+module Addcombs(main) where
+import Prelude
+import Data.Char
import System.Environment
chunkify :: Int -> [Char] -> [[Char]]
@@ -8,7 +10,7 @@
in as : chunkify n bs
showChunk :: [Char] -> String
-showChunk = concatMap (\ c -> show (fromEnum c) ++ ",")
+showChunk = concatMap (\ c -> show (ord c) ++ ",")
main :: IO ()
main = do
--
⑨