Skip to main content
Version: Next

Imports and Exports

Split scripts with import and expose host-callable functions with [<export>].

Import

import "shared/math.fss" as Math

let value = Math.double 21

Imports are file-relative and use explicit aliases.

Export

[<export>]
let greet name = $"hello {name}"

Host applications can invoke exported functions through runtime APIs.