Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/basile-henry/ghci-rs

A crate to manage and communicate with ghci (Haskell's GHC interpreter)
https://github.com/basile-henry/ghci-rs

Last synced: 8 days ago
JSON representation

A crate to manage and communicate with ghci (Haskell's GHC interpreter)

Awesome Lists containing this project

README

        

# ghci [![CI Status](https://github.com/basile-henry/ghci-rs/workflows/CI/badge.svg)](https://github.com/basile-henry/ghci-rs/actions) [![crates.io](https://img.shields.io/crates/v/ghci.svg)](https://crates.io/crates/ghci) [![docs.rs](https://docs.rs/ghci/badge.svg)](https://docs.rs/ghci)

A crate to manage and communicate with `ghci` sessions

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

## License

[MIT License](./LICENSE)

Copyright 2023 Basile Henry