TEMP: remove Null type
This commit is contained in:
parent
18aeb7b6f8
commit
9641f59f3d
3 changed files with 1 additions and 29 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# XXX: TODO: use the custom Null type instance instead of the Wrap type
|
||||
# XXX: TODO: use the Maybe/Null type instance instead of the Wrap type
|
||||
{this, ...}: let
|
||||
inherit
|
||||
(builtins)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
# WARNING: this file is strictly for bootstrapping nt
|
||||
{bootstrap, ...} @ inputs:
|
||||
bootstrap inputs [
|
||||
./null.nix
|
||||
./maybe.nix
|
||||
./wrap.nix
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,27 +0,0 @@
|
|||
# XXX: TODO: replace Null with the naive Maybe type
|
||||
{this, ...}: let
|
||||
inherit
|
||||
(this)
|
||||
ntTrapdoorKey
|
||||
;
|
||||
inherit
|
||||
(this.trapdoor)
|
||||
mkTrapdoorSet
|
||||
;
|
||||
in {
|
||||
# NOTE: This is not good for writing type safe code
|
||||
# NOTE: it is however efficient for bootstrapping the primitives
|
||||
Null =
|
||||
# WARNING: Null skips implementing a Type altogether
|
||||
# WARNING: Null is an orphaned Type instance
|
||||
mkTrapdoorSet ntTrapdoorKey {
|
||||
default = {};
|
||||
unlock = {
|
||||
instance = true;
|
||||
sig = "nt::Null";
|
||||
derive = [];
|
||||
ops = {};
|
||||
req = {};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue