From 5aad91f273f39ba1a11143585835e757a57de234 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 9 Jan 2023 20:13:33 +0530 Subject: refactor: moves stuff around --- examples/guess-number.ts | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'examples/guess-number.ts') diff --git a/examples/guess-number.ts b/examples/guess-number.ts index f03ee10..169805f 100644 --- a/examples/guess-number.ts +++ b/examples/guess-number.ts @@ -1,20 +1,13 @@ -import { - PutString, - Bind, - Kind1, - JsExpr, - ReadLine, - Do, - PutStringLn, -} from '../stdlib' +import { Bind, Kind1, Do } from '../stdlib/effect' +import { PutString, ReadLine, PutStringLn } from '../stdlib/stdio' +import { JsExpr } from '../stdlib/sys' export type main = [ PutStringLn<'Guess a number between 0 & 9. You have 5 guesses'>, Bind, StartGuessing> ] -interface AskForGuess - extends Kind1 { +interface AskForGuess extends Kind1 { return: `${this['input']}` extends `${N}` ? PutStringLn<'Yay! You got it right!'> : Do< -- cgit v1.3.1