Copyright | Guillaume Sabbagh 2021 |
---|---|
License | GPL-3 |
Maintainer | guillaumesabbagh@protonmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Write lazy text to a file specified by a path, if the path leads to non existing directories, it creates the directories. Credits to wisn : https://stackoverflow.com/a/58685979
Synopsis
- createAndWriteFile :: FilePath -> Text -> IO ()
Documentation
createAndWriteFile :: FilePath -> Text -> IO () Source #
Write lazy text to a file specified by a path, if the path leads to non existing directories, it creates the directories.