haskell-opengl / OpenGLRaw

Haskell bindings to OpenGL (direct C bindings)
http://www.haskell.org/haskellwiki/OpenGL
BSD 3-Clause "New" or "Revised" License
47 stars 19 forks source link

Combine foreign imports with same signature. Does not produce short names #27

Closed serprex closed 9 years ago

serprex commented 9 years ago

Two directions on compression:

Create a huffman table from the current set of functions & then rewrite getDynName to output the compression in base-53

Create the list of signatures before printing commands. Pass list to showCommand. Name the functions dyn1, dyn2, dyn3, etc

svenpanne commented 9 years ago

Nice, this already cuts down Functions.hs by 300kB and 9k lines. I think I'll land this and do 2 things:

Slowly the OpenGLRaw and gl packages converge more and more... :wink: