Posts by Rudy Matela • 156 points
1 post
-
4
votes2
answers650
viewsA: Creating files in Haskell
You must use the function writeFile to overwrite or appendFile to add to the end, described in Section 7.1 of the Haskell Report. Correcting your example (and spelling out the types): func :: IO ()…