Laar / OpenGLRawgen

Generator for C-imports to Haskell for OpenGL.
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

Invalid module / package name #16

Open hadronized opened 10 years ago

hadronized commented 10 years ago

I tried to compile the latest gl.xml to Haskell modules. It fails because of a module / package called 3DFX. I removed those modules from the exposed modules in my lib because I don’t use them, but it’s an annoying issue.

Laar commented 10 years ago

Ah, that is a nice issue caused by 3DFX not being a valid module identifier. The easiest solution is, probably, to strip the invalid characters from the front reducing it to DFX. But I should think about it, because removing such things can cause problems.

In the meantime you could add --no-vendor=3DFX to your command line options. Alternatively you can put 3DFX (and more vendors) in a file and use --no-vendorf=PATH_TO_FILE.