reflex-ghci-0.2.0.1: A GHCi widget library for use in reflex applications
Safe HaskellNone
LanguageHaskell2010

Reflex.Process.GHCi

Description

  • Module: Reflex.Process.GHCi
  • Description: Run GHCi processes in a reflex application
Synopsis

Documentation

ghci Source #

Arguments

:: (Adjustable t m, MonadFix m, MonadHold t m, MonadIO (Performable m), MonadIO m, NotReady t m, PerformEvent t m, PostBuild t m, TriggerEvent t m) 
=> CreateProcess

How to run GHCi

-> Event t [Command]

Send an expression to evaluate

-> Event t ()

Reload

-> Event t ()

Shutdown

-> m (Repl t) 

Runs a GHCi process and reloads it whenever the provided event fires

ghciWatch :: (TriggerEvent t m, PerformEvent t m, MonadIO (Performable m), PostBuild t m, MonadIO m, MonadFix m, MonadHold t m, Adjustable t m, NotReady t m) => CreateProcess -> Maybe Command -> Event t () -> Event t () -> m (Repl t) Source #

Run a GHCi process that watches for changes to Haskell source files in the current directory and reloads if they are modified

hasErrors :: Cmd -> Bool Source #

Detect errors reported in stdout or stderr