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

Reflex.Vty.GHCi

Description

  • Module: Reflex.Vty.GHCi
  • Description: Vty widgets useful when building your own GHCi runner
Synopsis

Documentation

statusDisplay :: (PostBuild t m, MonadHold t m) => Ghci t -> VtyWidget t m () Source #

Display the overall status of the GHCi session, including exit information in case GHCi has quit

scrollableOutput :: (Reflex t, MonadNodeId m, MonadHold t m, MonadFix m, PostBuild t m) => Behavior t ByteString -> VtyWidget t m () Source #

A scrollable widget that displays a message at the bottom of the widget when there is additional content to view.

scrollingOutput :: (Reflex t, Monad m, MonadHold t m, MonadFix m) => Dynamic t ByteString -> VtyWidget t m () Source #

A scrollable widget that scrolls down as output goes past the end of the widget

ghciModuleStatus :: (MonadNodeId m, PostBuild t m, MonadHold t m, MonadFix m, Adjustable t m) => Ghci t -> VtyWidget t m () Source #

Display the output GHCi produces when it's loading the requested modules (e.g., warnings)

ghciExecOutput :: (MonadHold t m, MonadFix m, Adjustable t m) => Ghci t -> VtyWidget t m () Source #

Display the output of the expression GHCi is evaluating

ghciPanes :: (Reflex t, MonadFix m, MonadHold t m, MonadNodeId m, PostBuild t m, Adjustable t m) => Ghci t -> VtyWidget t m () Source #

A widget that displays the module status and the execution status in two stacked, resizable panes

getExitEvent :: (PerformEvent t m, MonadIO (Performable m)) => Ghci t -> Event t a -> VtyWidget t m (Event t ()) Source #

Listen for ctrl-c (and any other provided exit events) and shutdown the Ghci process upon receipt

shutdown :: (PerformEvent t m, MonadIO (Performable m)) => Event t (Ghci t) -> m (Event t ()) Source #

Shut down a given Ghci process