Reusing compile time code

Yes, as mentioned by @lud you need to fix the module attribute declaration. The error message is not intuitive, though!