Русский     English

Installing AivikaSim

The installation depends whether you use Stack or Cabal directly.

Using Stack

When using Stack, you can add the following locations to the packages section in your stack.yaml file like this:

packages:
- location:
   https://github.com/dsorokin/aivikasim/archive/v1.0.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-transformers/archive/v1.0.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-distributed/archive/v0.1.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-gpss/archive/v0.1.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-experiment/archive/v0.1.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-experiment-chart/archive/v0.1.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-experiment-diagrams/archive/v0.1.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-experiment-cairo/archive/v0.1.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-experiment-entity/archive/v0.3.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-experiment-entity-HDBC/archive/v0.3.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-experiment-provider/archive/v0.1.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-experiment-provider-distributed/archive/v0.1.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-experiment-report/archive/v0.2.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-realtime/archive/v0.1.3.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-branches/archive/v0.2.tar.gz
  extra-dep: true
- location:
   https://github.com/dsorokin/aivikasim-lattice/archive/v0.1.2.tar.gz
  extra-dep: true
- '.'

Then you can define the corresponding dependencies in the extra-deps section of the same file like this:

extra-deps:
- aivikasim-1.0
- aivikasim-transformers-1.0
- aivikasim-distributed-0.1
- aivikasim-gpss-0.1
- aivikasim-experiment-0.1
- aivikasim-experiment-chart-0.1
- aivikasim-experiment-diagrams-0.1
- aivikasim-experiment-cairo-0.1
- aivikasim-experiment-entity-0.3
- aivikasim-experiment-entity-HDBC-0.3
- aivikasim-experiment-provider-0.1
- aivikasim-experiment-provider-distributed-0.1
- aivikasim-experiment-report-0.2
- aivikasim-realtime-0.1.3
- aivikasim-branches-0.2
- aivikasim-lattice-0.1.2

Now you can use AivikaSim in your Stack project.

Also you can build the API reference documentation for AivikaSim:

$ stack haddock

Using Cabal

Using AivikaSim with Cabal is more tricky. Therefore, it is highly recommended to install AivikaSim using Stack whenever possible. Nevertheless, if you still decide to use Cabal directly, then you can follow the next installation instructions. They are mainly destined for development of AivikaSim.