segregate types
This commit is contained in:
parent
91de29889e
commit
e3858bb932
5 changed files with 28 additions and 20 deletions
8
nt/primitives/types/default.nix
Normal file
8
nt/primitives/types/default.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{mix, ...} @ inputs:
|
||||
mix.newMixture inputs (mixture: {
|
||||
includes.public = [
|
||||
./maybe.nix
|
||||
./null.nix
|
||||
./wrap.nix
|
||||
];
|
||||
})
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue