packages feed

calculator-0.4.1.2: README.md

# Calculator

[![Build Status](https://travis-ci.org/sumitsahrawat/calculator.svg)](https://travis-ci.org/sumitsahrawat/calculator)

A feature rich calculator repl.

## Features

- Arithmetic
- Standard mathematical functions
- Variable bindings
- Function bindings
  - Single argument functions
  - Multiple argument functions
- Plotting
  - Static plots (no animation)
  - Dynamic plots (for multiple argument functions)

## Installation

### Linux users

From hackage:

```bash
stack install gtk2hs-buildtools
PATH="$HOME/.local/bin:$PATH" stack install calculator
```

From the repo:

```bash
stack install gtk2hs-buildtools # From a directory with no stack.yaml
cd /path/to/calculator/repo
PATH="$HOME/.local/bin:$PATH" stack install
```

### Windows users

This should work, assuming the PATH variable is set correctly:

```cmd
cmd> stack install gtk2hs-buildtools
cmd> stack install calculator
```

## Implementation

* Written in haskell
* Parsing done using [parsec](https://hackage.haskell.org/package/parsec)
* Repl built using [haskeline](https://hackage.haskell.org/package/haskeline)
* Colored output using ANSI color codes

## Usage

    Use :? to view usage instructions.

## Thanks

* Thanks to [husky](https://github.com/markusle/husky) for color output.