aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-01-14 11:27:51 +0530
committerAkshay Nair <phenax5@gmail.com>2023-01-14 11:27:51 +0530
commitb347afc70c305b47860a40bac43c3fe407a3c25a (patch)
treef8bdf2ab6bbd070e6cf1fae8b16a25c268c765ad /examples
parent97817711d3eebaacc354a77aa83bc9544cc87d42 (diff)
downloadts-types-lang-b347afc70c305b47860a40bac43c3fe407a3c25a.tar.gz
ts-types-lang-b347afc70c305b47860a40bac43c3fe407a3c25a.zip
chore: prettier
Diffstat (limited to 'examples')
-rw-r--r--examples/file.ts25
-rw-r--r--examples/greeting.ts5
2 files changed, 16 insertions, 14 deletions
diff --git a/examples/file.ts b/examples/file.ts
index fb38613..ccb8a66 100644
--- a/examples/file.ts
+++ b/examples/file.ts
@@ -8,21 +8,24 @@ interface PrintK extends Kind1<string> {
}
export type main = [
- Do<[
- BindTo<"contents", ReadFile<'./bin.js'>>,
- PutStringLn<"------">,
- Bind<Label<"contents">, <c extends string>() => PutStringLn<c>>,
- ]>,
+ Do<
+ [
+ BindTo<'contents', ReadFile<'./bin.js'>>,
+ PutStringLn<'------'>,
+ Bind<Label<'contents'>, <c extends string>() => PutStringLn<c>>
+ ]
+ >,
- Try<Bind<Label<"contents">, PrintK>, <e extends string>() =>
- PutStringLn<`ERROR: ${e}`>>,
+ Try<
+ Bind<Label<'contents'>, PrintK>,
+ <e extends string>() => PutStringLn<`ERROR: ${e}`>
+ >,
- PutStringLn<"-------------">,
+ PutStringLn<'-------------'>,
- Bind<ReadFile<'./default.nix'>, <c extends string>() =>
- PutStringLn<c>>,
+ Bind<ReadFile<'./default.nix'>, <c extends string>() => PutStringLn<c>>,
- PutStringLn<"-------------">,
+ PutStringLn<'-------------'>,
Try<
Bind<ReadFile<'./unicorn'>, PrintK>,
diff --git a/examples/greeting.ts b/examples/greeting.ts
index 8ed2181..72edde2 100644
--- a/examples/greeting.ts
+++ b/examples/greeting.ts
@@ -10,12 +10,11 @@ export type main = [
PutStringLn<'----------------'>,
PutString<'Your name? '>,
- Bind<ReadLine, <name extends string>() =>
- PutStringLn<`Hello, ${name}`>>,
+ Bind<ReadLine, <name extends string>() => PutStringLn<`Hello, ${name}`>>,
PutStringLn<'----------------'>,
PutString<'Your purpose in life? '>,
Bind<ReadLine, ResponseK>,
- PutStringLn<'----------------'>,
+ PutStringLn<'----------------'>
]