segregate types

This commit is contained in:
Emile Clark-Boman 2026-01-25 11:21:55 +10:00
parent 91de29889e
commit e3858bb932
5 changed files with 28 additions and 20 deletions

View file

@ -0,0 +1,8 @@
{mix, ...} @ inputs:
mix.newMixture inputs (mixture: {
includes.public = [
./maybe.nix
./null.nix
./wrap.nix
];
})

View file

@ -1,13 +1,13 @@
{this, ...}: let
inherit
(this)
enfImpls
mkTrapdoorFn
mkTrapdoorSet
ntTrapdoorKey
ntDynamicTrapdoorKey
openTrapdoor
;
# inherit
# (this)
# enfImpls
# mkTrapdoorFn
# mkTrapdoorSet
# ntTrapdoorKey
# ntDynamicTrapdoorKey
# openTrapdoor
# ;
in {
# NOTE: Maybe is used to simplify parsing Type/Class declarations
# NOTE: and therefore must be implemented manually

View file

@ -1,10 +1,10 @@
# XXX: TODO: replace Null with the naive Maybe type
{this, ...}: let
inherit
(this)
ntTrapdoorKey
mkTrapdoorSet
;
# inherit
# (this)
# ntTrapdoorKey
# mkTrapdoorSet
# ;
in {
# NOTE: This is not good for writing type safe code
# NOTE: it is however efficient for bootstrapping the primitives

View file

@ -1,10 +1,10 @@
{this, ...}: let
inherit
(this)
ntTrapdoorKey
mkTrapdoorFn
mkTrapdoorSet
;
# inherit
# (this)
# ntTrapdoorKey
# mkTrapdoorFn
# mkTrapdoorSet
# ;
in {
# NOTE: Wrap is used to simplify parsing Type/Class declarations
# NOTE: and therefore must be implemented manually