Initialize an asclepias project

These instructions are a temporary shim until an initialization script or application is provided.

In the following, change myProj to your project ID.

PROJID=myProj
cabal init --libandexe --application-dir=apps --source-dir=plans --package-name=$PROJID -m -u https://gitlab.novisci.com/nsResearch/$PROJID -d hasklepias
cabal update
  1. Rename MyLib.hs to Cohorts.hs.

  2. Update myProj.cabal

    1. expose all modules

    2. set hasklepias to a particular version

    3. set library default extensions:

       default-extensions:
         NoImplicitPrelude
         OverloadedStrings
         LambdaCase
         FlexibleContexts
         FlexibleInstances
         DeriveGeneric
         MultiParamTypeClasses
         DataKinds
         TypeApplications
  3. add a cabal.project file with:

    source-repository-package
      type: git
      location: https://github.com/novisci/asclepias.git
      tag: #SET TO DESIRED COMMIT#
      subdir: hasklepias-core hasklepias-main hasklepias-templates stype event-data-theory
    
    packages: ./myProj.cabal
  4. Start coding.