aboutsummaryrefslogtreecommitdiff
path: root/src/types.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/types.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts
index 7f6546f..979745f 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -1,3 +1,4 @@
+import {Option} from "fp-ts/lib/Option"
import { constructors, Union } from "./utils"
type ExprT = {
@@ -21,3 +22,9 @@ export type Expr = Union<ExprT>
export const Expr = constructors<ExprT>()
+export type ListExpr = [
+ Option<Expr>,
+ Expr[],
+ Option<Expr>,
+]
+