Copyright | (c) 2015 Javran Cheng |
---|---|
License | MIT |
Maintainer | Javran.C@gmail.com |
Stability | unstable |
Portability | non-portable (requires X11) |
Safe Haskell | None |
Language | Haskell2010 |
Miscellaneous utilities for safe IO action, scanning files, sending X events, etc.
Documentation
safeIO :: a -> IO a -> IO a Source
performs an IO action and captures all the exceptions, a default value is returned when there are exceptions.
isHaskellSourceFile :: FilePath -> Bool Source
checks if a file name is a Haskell source file
allFiles :: FilePath -> IO [FilePath] Source
gets a list of all files under a given directory and its subdirectories
sendRestart :: IO () Source
sends restart request to the current XMonad instance