Portability | unportable |
---|---|
Stability | unstable |
Maintainer | Jose A. Ortega Ruiz <jao@gnu.org> |
Safe Haskell | None |
Plugins
Description
This module exports the API for plugins.
Have a look at Plugins/HelloWorld.hs
- class Show e => Exec e where
- tenthSeconds :: Int -> IO ()
- readFileSafe :: FilePath -> IO String
- hGetLineSafe :: Handle -> IO String
Documentation
class Show e => Exec e where
tenthSeconds :: Int -> IO ()
Work around to the Int max bound: since threadDelay takes an Int, it is not possible to set a thread delay grater than about 45 minutes. With a little recursion we solve the problem.
readFileSafe :: FilePath -> IO String
hGetLineSafe :: Handle -> IO String