decodeModuleBinary function
Implementation
Module decodeModuleBinary(List<int> bytes) =>
switch (decodeBallFileBinary(bytes)) {
BallModuleFile(:final module) => module,
BallProgramFile() => throw BallFileFormatException(
'expected a Module ball file but got a Program',
),
};