Popularity
3.3
Declining
Activity
0.0
Stable
5
2
0

Monthly Downloads: 9
Programming language: Haskell
License: MIT License
Tags: Unclassified    
Latest version: v0.1.0

selfrestart alternatives and similar packages

Based on the "Unclassified" category.
Alternatively, view selfrestart alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of selfrestart or a related project?

Add another 'Unclassified' Package

README

selfrestart

Build Status

Allows restarting the currently running Haskell executable.

Uses exec().

Example

module Main (main) where

import Control.Concurrent
import Control.Monad

import System.SelfRestart (selfRestart, forkSelfRestartExePollWithAction)

main :: IO ()
main = do

  -- Spawn thread to restart when executable changes
  forkSelfRestartExePollWithAction 1.0 $
    putStrLn "executable changed, restarting"

  forM_ [1..4] $ \x -> do
    print x
    threadDelay 1000000

  -- Restart when the loop is over
  putStrLn "counter done, selfRestart"
  selfRestart