Crate ghci

Source
Expand description

A crate to manage and communicate with ghci sessions

let mut ghci = Ghci::new()?;
let out = ghci.eval("putStrLn \"Hello world\"")?;
assert_eq!(&out.stdout, "Hello world\n");

See Ghci documentation for more examples

Structs§

EvalOutput
Result for a ghci evaluation
Ghci
A ghci session handle

Enums§

GhciError
Errors associated with a Ghci session

Type Aliases§

Result
A convenient alias for std::result::Result using a GhciError