From 7a9520b3879bccb872aaca6245c92071a957deff Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Thu, 12 Jan 2023 17:33:57 +0530 Subject: feat: adds try/catch effects --- stdlib/exception.ts | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 stdlib/exception.ts (limited to 'stdlib') diff --git a/stdlib/exception.ts b/stdlib/exception.ts new file mode 100644 index 0000000..731b3b0 --- /dev/null +++ b/stdlib/exception.ts @@ -0,0 +1,5 @@ +import { Effect, Kind1 } from "./effect"; + +export interface Try<_E extends Effect, _Catch extends Kind1> extends Effect {} + +export interface Throw<_E> extends Effect {} -- cgit v1.3.1