Console interactivity in Netwire?
I am testing with the Netwire haskell library and made it work with a simple time wire: import Control.Wire import Prelude hiding ((.), id) import Control.Monad.IO.Class import Data.Functor.Identity import System.IO wire :: (HasTime t s) => Wire s () m a t wire = time run :: (HasTime t s, MonadIO m, Show b, Show e) => Session m s -> Wire s e m a b -> m () run session wire = do (dt, session') <- stepSession session (wt', wire') <- stepWire wire dt $ Right undefined case wt' of -- | Exit Left _ -> return () Right x -> do liftIO $ do putChar '\r' putStr $ either (\ex -> show ex) show wt' hFlush