Skip to content

ku-fpg/hermit-shell

Repository files navigation

HERMIT shell

Implements RESTful web service interface to HERMIT, spawns GHCi in a separate process to communicate with it.

Running

cabal install
hermit-shell SomeFile.hs

Here is an example of how to use the display command and how set the current path to the main function, once the shell is started:

send display
setPath (rhsOf "main")

Tests

bash% cabal test --show-details=streaming

(Note that this runs the installed version, not the locally built version.)

To remaster any test, just remove the golden, and re-rerun.

Running Examples

% cabal exec bash
% cd examples/hanoi/
% hermit-shell Hanoi.hs 
[...]
HERMIT> :l HanoiScript
[...]
HERMIT> script

Layout of Modules

  • HERMIT.GHCI -- The server side of the interface between the JSON/RPC and HERMIT
  • HERMIT.GHCI.Client -- The client side of the interface between JSON/RPC and HERMIT

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages