#haskell #repl #subprocess #ffi

ghci

Manage and communicate with ghci (Haskell's GHC interpreter)

1 unstable release

0.1.0 Jul 23, 2023

#932 in Programming languages

24 downloads per month

MIT license

14KB
156 lines

ghci CI Status crates.io docs.rs

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");

License

MIT License

Copyright 2023 Basile Henry


lib.rs:

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

Dependencies

~2.5MB
~53K SLoC