Closed marcellussiegburg closed 5 months ago
Is this still relevant?
I think this is not relevant any more. There have been changes on allowing different module names. Usually such changes are rejected because of a template mismatch (which is expected). If the issue reoccurs, this ticket might be reopened (or a new one created).
Module parsing seems to fail if the module name does not match. Leading to a misleading error message:
(Either) It should happen in the
ParseError
case here (or the module is written to the "wrong" location - but be careful to not expose internal modules if changing the latter): https://github.com/fmidue/haskell-template-task/blob/894c288b2d15bd6e7e9574c740e6f0769699f7a1/src/Haskell/Template/Task.hs#L571-L578