This commit is contained in:
Umur Ozkul 2022-07-05 15:27:56 +02:00
parent e0b2632028
commit b3ac8848d2

View File

@ -24,6 +24,8 @@ module FooImplementation = {
`I am ${a->Js.Float.toString}-bar and I am ${b->Js.Float.toString}-bar` `I am ${a->Js.Float.toString}-bar and I am ${b->Js.Float.toString}-bar`
} }
// There is a potential for type modules to define lift functions
// for their own type to get rid of switch statements.
module FooFFI = { module FooFFI = {
let makeFoo: ExpressionT.optionFfiFn = (args: array<InternalExpressionValue.t>, environment) => { let makeFoo: ExpressionT.optionFfiFn = (args: array<InternalExpressionValue.t>, environment) => {
switch args { switch args {