Skip to content

v0.2.1

Compare
Choose a tag to compare
@antfu antfu released this 06 Jan 03:14
· 346 commits to master since this release

Static Type Inference

When the option is turned on, the compiler will now raise exceptions if your code does not typecheck. Also it is capable of producing type signatures for inspection, e.g. ./example/quicksort.wy produces the following:

[0-347] {
  快排 : (('a) arr) -> (('a) arr)
  己 : (num) arr
  [33-285] {
    首 : ('a) arr
    頷 : ('a) arr
    尾 : ('a) arr
    甲一 : 'a
    甲餘 : ('a) arr
    乙 : ('a) arr
    [136-201] {
      丁 : 'a
    }
  }
}

For more detail, please refer to #486

Standard Library

3rd Party Compilers

Fixes

  • Stdlib was not bundled correctly. (PR #481, thanks @antfu)