aboutsummaryrefslogtreecommitdiffstats
path: root/alv/base
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-05-08 10:23:03 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-02 14:23:21 +0000
commitbb0dcb9e55ac39341be4021be35b019a475a8126 (patch)
tree55c78a815e3e72b089b24a1434b11009d6db1ab5 /alv/base
parentwip new type system and refactoring (diff)
downloadalive-bb0dcb9e55ac39341be4021be35b019a475a8126.tar.gz
alive-bb0dcb9e55ac39341be4021be35b019a475a8126.zip
add alv.type and spec
Diffstat (limited to 'alv/base')
-rw-r--r--alv/base/init.moon10
-rw-r--r--alv/base/match.moon2
2 files changed, 10 insertions, 2 deletions
diff --git a/alv/base/init.moon b/alv/base/init.moon
index 71e9cea..62de2ab 100644
--- a/alv/base/init.moon
+++ b/alv/base/init.moon
@@ -24,6 +24,7 @@ import FnDef from require 'alv.base.fndef'
import Input from require 'alv.base.input'
import val, evt from require 'alv.base.match'
import Constant, SigStream, EvtStream, IOStream from require 'alv.result'
+import Primitive, Array, Struct from require 'alv.type'
import RTNode from require 'alv.rtnode'
import Error from require 'alv.error'
@@ -35,6 +36,13 @@ import Error from require 'alv.error'
:val, :evt
-- redundant exports, to keep anything an extension might need in one import
+
+ -- Results
:Constant, :SigStream, :EvtStream, :IOStream
- :RTNode, :Error
+
+ -- Types
+ :Primitive, :Array, :Struct
+
+ :RTNode
+ :Error
}
diff --git a/alv/base/match.moon b/alv/base/match.moon
index 819b0b4..3a2b3d5 100644
--- a/alv/base/match.moon
+++ b/alv/base/match.moon
@@ -45,7 +45,7 @@
--
-- @module base.match
import Error from require 'alv.error'
-import Primitive from require 'alv.types'
+import Primitive from require 'alv.type'
local Repeat, Sequence, Choice, Optional