README.md

# midas_beam

Run [Midas](https://github.com/midas-framework/midas) effects and tasks on the BEAM.

[![Package Version](https://img.shields.io/hexpm/v/midas_beam)](https://hex.pm/packages/midas_beam)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/midas_beam/)

```sh
gleam add midas_beam@1
```
```gleam
import midas/task as t
import midas/beam

/// Portable task definition that makes a web request and request some random bytes.
pub fn task(){
  let request = todo as "create a request"
  use response <- t.do(t.fetch(request))
  
  use random <- t.do(t.strong_random(10))
  t.done("task finished")
}
  
/// Run the task.
pub fn main() {
  beam.run(task())
}
```

Further documentation can be found at <https://hexdocs.pm/midas_beam>.

## Development

```sh
gleam run   # Run the project
gleam test  # Run the tests
```