Skip to content

Commit 05f036d

Browse files
Rename agda2hs.agda-lib to base.agda-lib
1 parent 8cd4a6f commit 05f036d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+28
-24
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- 'lib/**'
99
- 'src/**'
1010
- 'test/**'
11-
- 'lib/agda2hs/agda2hs.agda-lib'
11+
- 'lib/base/base.agda-lib'
1212
- 'agda2hs.cabal'
1313
- 'cabal.project'
1414
- 'Makefile'

.github/workflows/nix-ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- 'lib/**'
99
- 'src/**'
1010
- 'test/**'
11-
- 'lib/agda2hs/agda2hs.agda-lib'
11+
- 'lib/base/base.agda-lib'
1212
- 'agda2hs.cabal'
1313
- 'cabal.project'
1414
- 'Makefile'
@@ -24,12 +24,12 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
derivation: [agda2hs, agda2hs-lib]
27+
derivation: [agda2hs, base-lib]
2828
include:
2929
- pretty: "Compile agda2hs"
3030
derivation: agda2hs
3131
- pretty: "Typecheck with Agda"
32-
derivation: agda2hs-lib
32+
derivation: base-lib
3333
steps:
3434
- uses: actions/checkout@v3
3535
- uses: cachix/install-nix-action@v22

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repl :
1111
cabal repl # e.g. `:set args -itest -otest/build test/AllTests.agda ... main ... :r ... main`
1212

1313
libHtml :
14-
cabal run agda2hs -- --html --include-path lib/agda2hs lib/agda2hs/Haskell/Prelude.agda
14+
cabal run agda2hs -- --html --include-path lib/base lib/base/Haskell/Prelude.agda
1515
cp html/Haskell.Prelude.html html/index.html
1616

1717
test/agda2hs : $(FILES)

agda2hs.cabal

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ extra-doc-files: CHANGELOG.md
1919
README.md
2020

2121
data-files:
22-
lib/agda2hs/agda2hs.agda-lib
23-
lib/agda2hs/**/*.agda
22+
lib/base/base.agda-lib
23+
lib/base/**/*.agda
2424

2525
source-repository head
2626
type: git

docs/source/introduction.md

+8-8

lib/agda2hs/agda2hs.agda-lib

-4
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/base/base.agda-lib

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-- This library
2+
-- * mirrors the Haskell `base` package
3+
-- * is intertwined with `agda2hs`
4+
5+
name: base
6+
depend:
7+
include: .
8+
flags: -W noUnsupportedIndexedMatch --erasure

nix/default.nix

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
let
66
lib = import ./lib.nix { inherit pkgs; };
77
version = "1.3";
8-
agdalib = pkgs.agdaPackages.mkDerivation {
9-
pname = "agda2hs";
8+
base-lib = pkgs.agdaPackages.mkDerivation {
9+
pname = "base";
1010
meta = { };
1111
version = version;
1212
preBuild = ''
1313
echo "{-# OPTIONS --sized-types #-}" > Everything.agda
1414
echo "module Everything where" >> Everything.agda
1515
find . -name '*.agda' ! -name 'Everything.agda' | sed -e 's/.\///;s/\//./g;s/\.agda$//;s/^/import /' >> Everything.agda
1616
'';
17-
src = ../lib/agda2hs;
17+
src = ../lib/base;
1818
};
1919
in
2020
{
2121
inherit (lib) agda2hs;
22-
agda2hs-lib = agdalib;
22+
base-lib = base-lib;
2323
}

test/agda2hs-test.agda-lib

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
name: agda2hs-test
22
depend:
3-
include: . ../lib/agda2hs/
3+
include: . ../lib/base/
44
flags: --sized-types --erasure

0 commit comments

Comments
 (0)