aboutsummaryrefslogtreecommitdiff
path: root/examples/hello-world.ts
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-01-13 20:32:20 +0530
committerAkshay Nair <phenax5@gmail.com>2023-01-13 20:33:01 +0530
commit518a6a9ee31f0b03f08cb77bc613b4d708bb640b (patch)
tree7f17ce66f337dee573192ce06a24385415048ae2 /examples/hello-world.ts
parent42f8c401dc9519bc8b2d386ce9eda072144a46d0 (diff)
downloadts-types-lang-518a6a9ee31f0b03f08cb77bc613b4d708bb640b.tar.gz
ts-types-lang-518a6a9ee31f0b03f08cb77bc613b4d708bb640b.zip
chore: prettier
Diffstat (limited to 'examples/hello-world.ts')
-rw-r--r--examples/hello-world.ts17
1 files changed, 5 insertions, 12 deletions
diff --git a/examples/hello-world.ts b/examples/hello-world.ts
index fcdb8e9..9d2bc18 100644
--- a/examples/hello-world.ts
+++ b/examples/hello-world.ts
@@ -1,20 +1,13 @@
-import { Bind, Do, Kind1 } from "../stdlib/effect";
-import { CreateRef, GetRef, Ref, SetRef } from "../stdlib/ref";
-import { Print } from "../stdlib/stdio";
+import { Bind, Do, Kind1 } from '../stdlib/effect'
+import { CreateRef, GetRef, Ref, SetRef } from '../stdlib/ref'
+import { Print } from '../stdlib/stdio'
interface PrintK extends Kind1 {
return: Print<this['input']>
}
interface Func extends Kind1<Ref> {
- return: Do<[
- SetRef<this['input'], 69>,
- Bind<GetRef<this['input']>, PrintK>,
- ]>
+ return: Do<[SetRef<this['input'], 69>, Bind<GetRef<this['input']>, PrintK>]>
}
-export type main = [
- Bind<CreateRef<200>, Func>,
- Print<1>,
-]
-
+export type main = [Bind<CreateRef<200>, Func>, Print<1>]