import { Bind, Kind1 } from '../stdlib/effect' import { PutStringLn } from '../stdlib/stdio' import { ReadFile } from '../stdlib/fs' import { Try } from '../stdlib/exception' interface PrintK extends Kind1 { return: PutStringLn } interface ConstK extends Kind1 { return: Val } export type main = [ Bind, PrintK>, Bind< Try< ReadFile<'./unicorn'>, ConstK<"hello world"> >, PrintK >, ]