mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
18 lines
822 B
Text
18 lines
822 B
Text
app "test" provides [main] to "./platform"
|
|
|
|
entry =
|
|
{
|
|
to_i8: Num.to_i8,
|
|
to_i16: Num.to_i16,
|
|
to_i32: Num.to_i32,
|
|
to_i64: Num.to_i64,
|
|
to_i128: Num.to_i128,
|
|
to_u8: Num.to_u8,
|
|
to_u16: Num.to_u16,
|
|
to_u32: Num.to_u32,
|
|
to_u64: Num.to_u64,
|
|
to_u128: Num.to_u128,
|
|
}
|
|
|
|
main = entry
|
|
# ^^^^^ { to_i128 : Int * -[[Num.to_i128(125)]]-> I128, to_i16 : Int w_a -[[Num.to_i16(119)]]-> I16, to_i32 : Int w_b -[[Num.to_i32(121)]]-> I32, to_i64 : Int w_c -[[Num.to_i64(123)]]-> I64, to_i8 : Int w_d -[[Num.to_i8(117)]]-> I8, to_u128 : Int w_e -[[Num.to_u128(135)]]-> U128, to_u16 : Int w_f -[[Num.to_u16(129)]]-> U16, to_u32 : Int w_g -[[Num.to_u32(131)]]-> U32, to_u64 : Int w_h -[[Num.to_u64(133)]]-> U64, to_u8 : Int w_i -[[Num.to_u8(127)]]-> U8 }
|