Skip to content

GytisZ/fpv9-haskell-workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Functional Vilnius #9 Haskell workshop

This guide will prepare on setting up your computer for the workshop.

Installing Haskell

We recommend to install Haskell locally on your computer instead of using a VM, because you can then use your favourite text editor and a familiar environment. If, however, you are having issues with doing so, we will provide an Ubuntu-based Vagrant VM, see below on Using Vagrant.

The easiest way to do so is using stack.

Installing stack

stack is a tool for building Haskell projects and managing dependencies, including installing the GHC Haskell compiler itself. It is essentially a wrapper around an older and 'lower-level' Haskell build tool called cabal.

stack is available on most platforms, please follow the official guides from stack on how to install it on your OS.

Next, you should install GHC via stack.

Installing GHC

The Glasgow Haskell Compiler (GHC) is the 'default' Haskell compiler, which we will use.

To install it, simply run:

stack setup 7.10

This might take a while.

Building the sample application (#buildapp)

First, obtain this repository, either via git:

git clone  https://github.com/functional-vilnius/fpv9-haskell-workshop

or simply by downloading the zip archive and extracting it.

From within the fpv9-haskell-workshop directory run stack build:

cd fpv9-haskell-workshop/
stack build

Finally, you can try running the tests

stack test

If you see something like

Progress: 1/2Test suite not yet implemented

Completed 2 action(s).

then you are done!

Using Vagrant (#usingvagrant)

Finally, perform the steps in Building the sample application.

Editor integration

We won't need any fancy IDE features during the workshop, so feel free to use any text editor you prefer. If you're not sure what to use, Atom has quite decent Haskell support.

About

Functional Vilnius Haskell workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 50.4%
  • Haskell 49.6%