fake.modules transposition for aspect-oriented Dendritic Nix. with cross-aspect dependencies. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ dendrix.oeiuwq.com/Dendritic.html
dendritic nix aspect oriented
at main 36 lines 798 B view raw
1# Public API entry point for flake-aspects library 2# Exports: types, transpose, aspects, new, new-scope 3lib: 4let 5 # Type system: aspectsType, aspectSubmodule, providerType 6 types = import ./types.nix lib; 7 8 # Generic transposition utility: parameterized by emit function 9 transpose = 10 { 11 emit ? lib.singleton, 12 }: 13 import ./default.nix { inherit lib emit; }; 14 15 # Aspect transposition with resolution 16 aspects = import ./aspects.nix lib; 17 18 # Dynamic class forwarding into submodules 19 forward = import ./forward.nix lib; 20 21 # Low-level scope factory: parameterized by callback 22 new = import ./new.nix lib; 23 24 # High-level named scope factory 25 new-scope = import ./new-scope.nix new; 26in 27{ 28 inherit 29 types 30 transpose 31 aspects 32 new 33 new-scope 34 forward 35 ; 36}