• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ayazhafiz / hgb / 526
95%

Build:
DEFAULT BRANCH: master
Ran 06 Aug 2020 05:17PM UTC
Jobs 1
Files 8
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
526

push

travis-ci-com

ayazhafiz
Add TypeScript emit for boolean expressions and arrays

Since Lukas and I need to figure out more of what this language will
look like and how sema will actually work with Haskell, in the meantime
I am adding some more TS codegen code.

I realized one problem is how to translate a code like `if x { a } else { b }`,
which is a valid expression in GB but not in TS. I think the best
translation for this is the IIFE

```typescript
(() => { if (x) { return a; } else { return b; } })()
```

This way, we don't have to create and keep track of local variables
created in the local scope.

However, this warrants discussion of how blocks in GB actually look
like. I think we decided that blocks that end with a statement (like
`{ foo! }`) evaluate to the unit type, and blocks that end with an
expression evaluate to that expression. The translation would be finish
voidly and return the relevant expression, respectively.

Part of #69

513 of 534 relevant lines covered (96.07%)

0.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 526.1 06 Aug 2020 05:17PM UTC 0
96.07
Travis Job 526.1
Source Files on build 526
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #526
  • 1f0d23b9 on github
  • Prev Build on master (#517)
  • Next Build on master (#535)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc