diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-04-28 17:00:17 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-04-28 17:00:17 -0400 |
commit | e683f156b7eb8e761c254704538914d86f309801 (patch) | |
tree | e239803c2f775cbb914a8c7db44189974728781a /DotDir.hs | |
parent | e833b89e2a1a1c2acbc0eb8bed1760ef0e50f3c5 (diff) | |
download | debug-me-e683f156b7eb8e761c254704538914d86f309801.tar.gz |
control window and chatting
Works!
Diffstat (limited to 'DotDir.hs')
-rw-r--r-- | DotDir.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/DotDir.hs b/DotDir.hs new file mode 100644 index 0000000..f6dbb58 --- /dev/null +++ b/DotDir.hs @@ -0,0 +1,12 @@ +module DotDir where + +import System.Posix +import System.Directory +import System.FilePath + +dotDir :: IO FilePath +dotDir = do + home <- homeDirectory <$> (getUserEntryForID =<< getEffectiveUserID) + let dir = home </> ".debug-me" + createDirectoryIfMissing False dir + return dir |