campl-logo
InstallationDocumentsExamplesGithub

Installation

Prerequisites:

For installing CaMPL, you need to have a unix based operating system with stack and alacritty terminal installed.

Stack is a program for developing and managing Haskell projects. You can learn more about it here.
And Alacritty is a terminal emulator that CaMPL uses it for concurrent interactions with users. You can learn more about Alacritty here.

Installation Process:

1. Download the installation script and run it by running the command below in your terminal:

> $ mkdir ~/.campl && cd ~/.campl && curl -LJO https://raw.githubusercontent.com/campl-ucalgary/campl/main/install && chmod +x install && ./install

2. Add campl to your PATH variable:

> $ export PATH="$HOME/.campl/bin:$PATH"

Run Your Program:

> $ stack exec -- mpl --run YOUR_PROGRAM.mpl

You can also creat an alias:

> $ alias campl=‘stack exec -- mpl --run’

and then run your program using:

> $ campl YOUR_PROGRAM.mpl
Developed by Programmin Languages Lab @ University of Calgary
email: robin@ucalgary.ca