You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diagrams-builder calls openTempFile (see here) to get a temporary file in which to output a Haskell module. It then uses the base name of the resulting file as the name of the module (as is required).
Although the documentation for openTempFile says the created file will have a name of the form "fooXXX.ext where XXX is some random number", the behavior of openTempFile changed recently so that it now always includes a hyphen (I think this was released in base-4.10). The problem is that a hyphen cannot be part of a Haskell module name, so now diagrams-builder fails with parse errors when it tries to compile the auto-generated modules.
The text was updated successfully, but these errors were encountered:
We might be able to use a module name that differs from the filename, if we are directly loading the file. If so that would definitely seem to be the right solution.
See this StackOverflow question.
diagrams-builder
callsopenTempFile
(see here) to get a temporary file in which to output a Haskell module. It then uses the base name of the resulting file as the name of the module (as is required).Although the documentation for
openTempFile
says the created file will have a name of the form "fooXXX.ext
where XXX is some random number", the behavior ofopenTempFile
changed recently so that it now always includes a hyphen (I think this was released inbase-4.10
). The problem is that a hyphen cannot be part of a Haskell module name, so nowdiagrams-builder
fails with parse errors when it tries to compile the auto-generated modules.The text was updated successfully, but these errors were encountered: