Skip to content

reflex-frp/reflex-ghci

Folders and files

NameName
Last commit message
Last commit date
May 26, 2023
Aug 1, 2023
May 26, 2023
May 26, 2023
Jun 27, 2023
Aug 1, 2023
Jun 27, 2023
Jan 23, 2020
Aug 1, 2023
Jan 15, 2020
May 24, 2023
Jan 15, 2020
May 26, 2023
Aug 1, 2023
Aug 1, 2023
May 26, 2023
May 26, 2023

Repository files navigation

reflex-ghci

Haskell Hackage BSD3 License

Run GHCi from within a Reflex FRP application and interact with it using a functional reactive interface.

Screenshot

Library

A functional-reactive wrapper around GHCi that uses filesystem notifications to automatically reload haskell source files.

Reflex.Process.GHCi provides the core GHCi process-running infrastructure. If you want to run your own GHCi, directly control when it reloads, or build your own custom interface, look there.

Reflex.Vty.GHCi provides a few widgets that are useful when building a console GHCi interface. Use these components to assemble your own vty GHCi runner.

Executable

This package includes a reflex-vty-based executable, shown above. Module information (errors, warnings, etc) is shown in a scrollable pane on the top half of the screen and the output of any expression you (optionally) choose to evaluate is shown in a scrollable pane on the bottom half. The panes are resizable using the mouse.

$ reflex-ghci -h
Welcome to reflex-ghci 0.1.4.0

Usage: reflex-ghci [-c|--command COMMAND] [-e|--expression EXPR]
  Run a Haskell REPL that automatically reloads when source files change.

Available options:
  -c,--command COMMAND     The ghci/cabal repl command to
                           run (default: "cabal repl --repl-options=-Wall")
  -e,--expression EXPR     The optional expression to evaluate once modules have
                           successfully loaded
  -h,--help                Show this help text

Acknowledgements

Inspired by the fantastic ghcid project.

About

Run GHCi from within a Reflex FRP application and interact with it using a functional reactive interface.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6