Skip to content

Commit 2248cae

Browse files
committed
First commit
0 parents  commit 2248cae

File tree

9 files changed

+1362
-0
lines changed

9 files changed

+1362
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- uses: purescript-contrib/setup-purescript@main
16+
with:
17+
purescript: "unstable"
18+
19+
- uses: actions/setup-node@v2
20+
with:
21+
node-version: "22.x"
22+
23+
- name: Install dependencies
24+
run: |
25+
npm install -g spago@next
26+
27+
- name: Run tests
28+
run: spago test

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.psc-ide-port
2+
.direnv
3+
.envrc
4+
output
5+
.spago
6+
node_modules

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# purescript-priority-queue
2+
3+
[![Latest release](http://img.shields.io/github/release/f-f/purescript-priority-queue.svg)](https://github.com/f-f/purescript-priority-queue/releases)
4+
[![Build status](https://github.com/f-f/purescript-priority-queue/workflows/CI/badge.svg?branch=main)](https://github.com/f-f/purescript-priority-queue/actions?query=workflow%3ACI+branch%3Amain)
5+
[![Pursuit](https://pursuit.purescript.org/packages/purescript-priority-queue/badge)](https://pursuit.purescript.org/packages/purescript-priority-queue)
6+
7+
Fast min and max `PriorityQueue`, based on binary heaps.
8+
9+
## Installation
10+
11+
```
12+
spago install priority-queue
13+
```
14+
15+
## Documentation
16+
17+
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-priority-queue).

flake.lock

Lines changed: 87 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
4+
purescript-overlay.url = "github:thomashoneyman/purescript-overlay";
5+
purescript-overlay.inputs.nixpkgs.follows = "nixpkgs";
6+
};
7+
8+
outputs = { self, nixpkgs, ... }@inputs:
9+
let
10+
supportedSystems = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
11+
12+
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
13+
14+
nixpkgsFor = forAllSystems (system: import nixpkgs {
15+
inherit system;
16+
overlays = builtins.attrValues self.overlays;
17+
});
18+
in
19+
{
20+
overlays = {
21+
purescript = inputs.purescript-overlay.overlays.default;
22+
};
23+
24+
devShells = forAllSystems (system:
25+
let pkgs = nixpkgsFor.${system};
26+
in {
27+
default = pkgs.mkShell {
28+
name = "dev";
29+
buildInputs = with pkgs; [
30+
purs-bin.purs-0_15_15
31+
purs-tidy
32+
purs-backend-es
33+
spago-unstable
34+
purescript-language-server
35+
nodejs
36+
];
37+
};
38+
});
39+
};
40+
}

0 commit comments

Comments
 (0)