Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
f-f committed Jul 24, 2024
0 parents commit 2248cae
Show file tree
Hide file tree
Showing 9 changed files with 1,362 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: purescript-contrib/setup-purescript@main
with:
purescript: "unstable"

- uses: actions/setup-node@v2
with:
node-version: "22.x"

- name: Install dependencies
run: |
npm install -g spago@next
- name: Run tests
run: spago test
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.psc-ide-port
.direnv
.envrc
output
.spago
node_modules
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# purescript-priority-queue

[![Latest release](http://img.shields.io/github/release/f-f/purescript-priority-queue.svg)](https://github.com/f-f/purescript-priority-queue/releases)
[![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)
[![Pursuit](https://pursuit.purescript.org/packages/purescript-priority-queue/badge)](https://pursuit.purescript.org/packages/purescript-priority-queue)

Fast min and max `PriorityQueue`, based on binary heaps.

## Installation

```
spago install priority-queue
```

## Documentation

Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-priority-queue).
87 changes: 87 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
purescript-overlay.url = "github:thomashoneyman/purescript-overlay";
purescript-overlay.inputs.nixpkgs.follows = "nixpkgs";
};

outputs = { self, nixpkgs, ... }@inputs:
let
supportedSystems = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];

forAllSystems = nixpkgs.lib.genAttrs supportedSystems;

nixpkgsFor = forAllSystems (system: import nixpkgs {
inherit system;
overlays = builtins.attrValues self.overlays;
});
in
{
overlays = {
purescript = inputs.purescript-overlay.overlays.default;
};

devShells = forAllSystems (system:
let pkgs = nixpkgsFor.${system};
in {
default = pkgs.mkShell {
name = "dev";
buildInputs = with pkgs; [
purs-bin.purs-0_15_15
purs-tidy
purs-backend-es
spago-unstable
purescript-language-server
nodejs
];
};
});
};
}
Loading

0 comments on commit 2248cae

Please sign in to comment.