🌈 Iris (/ˈaɪrɪs/) is a Greek goddess associated with communication, messages,
the rainbow, and new endeavors.
ℹ️ DISCLAIMER #1: Currently, Iris is in experimental phase and
mostly for early adopters. It may lack documentation or have
significant breaking changes. We appreciate anyone's help in
improving the documentation! At the same time, the maintainers will
strive to provide helpful migration guides.
ℹ️ DISCLAIMER #2: Iris is developed and maintained in free time
by volunteers. The development may continue for decades or may stop
tomorrow. You can use
GitHub Sponsorship to support
the development of this project.
Goals
Iris development is guided by the following principles:
Beginner-friendliness. Haskell beginners should be able to build
CLI applications with Iris. Hence, the implementation of Iris API
that uses less fancy Haskell features are preferred. When the
complexity is justified, the cost of introducing this extra
complexity should be mitigated by having better documentation.
Reasonable batteries-included. Iris is not trying to be
minimalistic as possible, it strives to provide out-of-the-box
solutions for most common problems. But at the same time, we don't
want to impose unnecessary heavy dependencies.
Excellent documentation. Iris documentation should be as
helpful as possible in using the framework.
NOTE: Currently, Iris may lack documentation but there's an
ongoing effort to improve the situation.
Single-line access. Iris is designed for qualified imports, and you
should be able to get all the needed API by writing a single import line:
import qualified Iris
🧱 Iris focuses solely on CLI applications. If you're interested in
building TUI app with Haskell, check out
brick.
Features
CLI apps built with Iris offer the following features for end users:
Automatic detection of colouring support in the terminal
Ability to check required external tools if you need e.g. curl or
git
Support for standard CLI options out-of-the-box:
--help
--version
--numeric-version: helpful for detecting required tools versions
--no-input: for disabling all interactive features
To build the project and run the tests locally, you can use either
cabal or stack.
See the First time section if you don't have Haskell
development environment locally.
Cabal
Build the project:
cabal build all
Run all unit tests:
cabal test --enable-tests --test-show-details=direct
Stack
Build the project:
stack build --test --no-run-tests
Run all unit tests:
stack test
First time
If this is your first time dealing with Haskell tooling, we recommend
using GHCup.
During the installation, GHCup will suggest you installing all the
necessary tools. If you have GHCup installed but miss some of the
tooling for some reason, type the following commands in the terminal: