Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 256 Bytes
import Control.Monad
import System.Plugins.Hotswap
main :: IO ()
main = do
inputHandler <- newPlugin "Plugin.o" [] "inputHandler" :: IO (Plugin (IO Bool))
forever $ do
r <- runPlugin inputHandler
when r $ reloadPlugin inputHandler
Something went wrong with that request. Please try again.