writeFile -bytestring

writeFile :: FilePath -> String -> IO ()
base Prelude, base System.IO
The computation writeFile file str function writes the string str, to the file file.
writeFile :: FilePath -> Text -> IO ()
text Data.Text.IO, text Data.Text.Lazy.IO
Write a string to a file. The file is truncated to zero length before writing begins.