Sha256: bea46adfacc45ba09fc83527ca2dd32e5a526d09d26af28284c44cc3f59dd674

Contents?: true

Size: 629 Bytes

Versions: 335

Compression:

Stored size: 629 Bytes

Contents

## Hints

To complete this exercise you need to implement the following functions:

- `openAccount` - Called at the start of each test. Returns a BankAccount.
- `closeAccount` - Called at the end of each test.
- `getBalance` - Get the balance of the bank account.
- `updateBalance` - Increment the balance of the bank account by the given amount.

The amount may be negative for a withdrawal.

The initial balance of the bank account should be 0.

You will find a dummy data declaration and type signatures already in place,
but it is up to you to define the functions and create a meaningful data type,
newtype or type synonym.

Version data entries

335 entries across 335 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.158 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.157 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.156 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.155 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.154 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.153 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.152 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.151 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.150 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.149 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.148 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.147 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.146 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.145 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.144 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.143 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.142 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.141 tracks/haskell/exercises/bank-account/.meta/hints.md
trackler-2.2.1.140 tracks/haskell/exercises/bank-account/.meta/hints.md