In TokenType.re I have:
type t =
| PLUS
| MINUS;
type identity = t;
and in OtherFile.re I have:
let map = Belt.MutableMap.make(TokenType);
I’m getting the following error which I don’t know how to resolve:
The variant constructor TokenType can't be found.
- If it's defined in another module or file, bring it into scope by:
- Annotating it with said module name: let food = MyModule.Apple
- Or specifying its type: let food: MyModule.fruit = Apple
- Constructors and modules are both capitalized. Did you want the latter?
Then instead of let foo = Bar, try module Foo = Bar.