1
1
mirror of https://github.com/coot/free-category.git synced 2024-09-11 14:17:30 +03:00
free-category/shell.nix
Marcin Szamotulski 20d61b2355
Efficient representation of a free category (#5)
* Efficient representation of free category

Using type aligned real time queues (Okasaki, 'Purely Functional Data
Structures') to represent catanable type allign lists (free categories).

Composition is O(1) and right fold is O(n), where n is number of
transitions.

* Bump version to 0.0.3

Make it compile on ghc802.

* Updated CI configuration
2019-08-31 08:12:21 +00:00

20 lines
482 B
Nix

{ compiler ? "ghc865"
, haddock ? true
, test ? true
, benchmarks ? false
, dev ? false
}:
with builtins;
let
default = import ./default.nix {inherit benchmarks compiler dev haddock test;};
nixpkgs = import ./nix/nixpkgs.nix { inherit compiler; };
in
{
free-category = if nixpkgs.lib.inNixShell
then default.free-category.env
else default.free-category;
examples = if nixpkgs.lib.inNixShell
then default.examples.env
else default.examples;
}