simple-payment-pay
: Simple payment usingPay
.simple-payment-close
: Simple payment usingClose
.choice-if
: UsingChoice
andIf
.choice-if-let
: UsingChoice
,If
andLet
.double-pay
: Sample solution for homework from Lecture 3.double-pay-refactored
: Refactored sample solution for homework from Lecture 3.multi-pay
: Payments by an arbitrary number of "givers".
- Change directory to the
code
folder:cd code
. - To build all examples, do
cabal build
. This will take a while the first time you do it! - To run an individual example, use
cabal run
. For example:cabal run simple-payment-pay
. - To interact with an individual example in the Repl, use
cabal repl
. For example:cabal repl exe:simple-payment-pay
.