writeFile -text

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 -> ByteString -> IO ()
bytestring Data.ByteString, bytestring Data.ByteString.Char8, bytestring Data.ByteString.Lazy, bytestring Data.ByteString.Lazy.Char8
Write a ByteString to a file.