Skip to content

Commit

Permalink
[ refactor ] proper pack setup (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-hoeck authored Nov 1, 2022
1 parent 7b4c118 commit 2389da5
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 14 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on:
pull_request:
branches:
- main
schedule:
- cron: '0 1 * * *'

defaults:
run:
Expand All @@ -30,6 +28,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Build lib
run: pack install sop
run: pack typecheck sop
- name: Typecheck docs
run: pack typecheck docs/docs.ipkg
run: pack typecheck sop-docs
1 change: 0 additions & 1 deletion .idris-version

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ record Employee where

Note: If a data type includes lazy fields, module `Data.Lazy`
should be imported as well when deriving interface implementations.

## Documentation

Most of the exported functions have been properly annotated
Expand All @@ -60,8 +61,7 @@ Starting from Idris2 version 0.5.1, tagged releases of the same
minor version number (e.g. 0.5.x) will be made available, while the main
branch keeps following the Idris2 main branch.

The latest commit is daily tested to build against the current
HEAD of the Idris compiler. Since Idris2 releases are happening
Since Idris2 releases are happening
rather infrequently at the moment, it is suggested to use
a package manager like [pack](https://github.com/stefan-hoeck/idris2-pack)
to install and maintain matching versions of the Idris compiler
Expand Down
6 changes: 2 additions & 4 deletions docs/docs.ipkg
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package sop-docs

authors = "stefan-hoeck"
version = 0.5.0
version = 0.6.0

sourcedir = "src"
depends = base >= 0.5.1
, elab-util
, sop
depends = sop

modules = Docs.Intro
, Docs.Barbies
Expand Down
9 changes: 9 additions & 0 deletions pack.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[custom.all.sop]
type = "local"
path = "."
ipkg = "sop.ipkg"

[custom.all.sop-docs]
type = "local"
path = "docs"
ipkg = "docs.ipkg"
6 changes: 3 additions & 3 deletions sop.ipkg
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package sop

authors = "stefan-hoeck"
version = 0.5.0
version = 0.6.0
brief = "Generic representation of data types as sums of products"
readme = "README.md"
license = "BSD-2 Clause"

sourcedir = "src"
depends = base >= 0.5.1
, elab-util >= 0.5.0
depends = base >= 0.6.0
, elab-util

modules = Data.Lazy
, Data.SOP
Expand Down

0 comments on commit 2389da5

Please sign in to comment.