Modules

Table of contents

Syntax

To define your module, simply write module <module name> where at the start of your source code.

Remember that the module name has to the match the file’s name, so if your file is Foo.fst, your module definition must be module Foo where.

As of version 3.0.0, it is not possible to selectively export functions.

Importing modules

To import modules, simply use import <module name>. For example, if you have a module Foo, you write import Foo to import all its functions.