-
To reproduce:
1. Start with `examples/hello-world/Hello.roc`
2. In `Package-Config.roc`, change `{ main : Str }` to `{ main : {} -> Str }`
3. In `Hello.roc`, change `main = "Hello, World!\n"` to …
-
So only the outer generic function gets monomorphized.
raulk updated
2 years ago
-
As `i31ref` doesn't seem to be an unanimously-agreed-on (see https://github.com/WebAssembly/gc/issues/53) part of the GC MVP spec, I am very interested in discussing what the concrete alternatives to …
-
Any thoughts (aside from its terrible name) about this macro which defines a monomorphization and specialization at the same time?
```
(cl:defmacro spec (f cl:&rest types)
`(coalton-toplevel
…
-
This code [(playground)](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=95832c231ba907ef3491428a04f0f0f8)
```rust
#![feature(const_generics)]
pub trait Foo {
fn…
-
This might have been introduced with the internal headers.
The vec128 SHA2 implementation now includes `Hacl_SHA2_Vec256.h`. There is no `Hacl_SHA2_Vec128.h` that would define the types required such…
-
These both work as expected:
```
» 3f64
3 : F64
» 3.0dec
3 : Dec
» x : Dec
… x = 3
… x
3 : Dec
```
However, this crashes the compiler:
```
» 3dec
thread '' panicked at 'Inval…
-
This is from @Braqzen in #1401 where it's not really related to that issue, so I'm recreating it here.
The following
```rust
contract;
abi MyContract {
fn bug1(param: (Person, u64)) -> bo…
otrho updated
2 years ago
-
Needed to have a `size_t` type since otherwise it clashes with `uint64_t` on my machine.
This is a hack until I get monomorphization working lol.
-
This currently doesn't generate any compile-time reports:
```elm
foo : Bool -> Str
foo = \bool ->
when bool is
True -> "true"
False -> "false"
Wat -> "surprise!"
…