Hi!

I did some progress on compilation.
The haskell files are preprocessed manually. Not they have no syntax error.

Compile with ./compile_with_jhc

I've attached the current output.

Important: *.hs_pre files are the original files, but the compiled files have .hs extension. The .hs_pre extension shown in error message is due to preprocessor deirectives. It refers to .hs files.
 
The error message is:
[ 87 of 165] Graphics.Rendering.OpenGL.GL.Extensions                                                                                               
Determining Exports/Imports: [Graphics.Rendering.OpenGL.GL.Extensions]                                                                             
Typing: ["Graphics.Rendering.OpenGL.GL.Extensions"]                                                                                                
Kind inference                                                                                                                                     
Type inference                                                                                                                                     
user error (                                                                                                                                       
What:    failure                                                                                                                                   
Why:     context reduction, no instance for: Jhc.Order.Eq (Jhc.Addr.FunPtr Graphics.Rendering.OpenGL.GL.Extensions.v0)                             
Where:   on line 40 in Extensions.hs_pre                                                                                                           
in the explicitly typed Graphics.Rendering.OpenGL.GL.Extensions.throwIfNull                                                                        
  Graphics.Rendering.OpenGL.GL.Extensions.7_msg                                                                                                    
  Graphics.Rendering.OpenGL.GL.Extensions.8_act                                                                                                    
  = Graphics.Rendering.OpenGL.GL.Extensions.8_act Jhc.Monad.>>=                                                                                    
      \ Graphics.Rendering.OpenGL.GL.Extensions.9_res ->                                                                                           
        if                                                                                                                                         
          Graphics.Rendering.OpenGL.GL.Extensions.9_res Jhc.Order.==                                                                               
            Foreign.Ptr.nullFunPtr                                                                                                                 
          then                                                                                                                                     
          Jhc.IO.ioError                                                                                                                           
            (Jhc.IO.userError Graphics.Rendering.OpenGL.GL.Extensions.7_msg)                                                                       
          else Jhc.Monad.return Graphics.Rendering.OpenGL.GL.Extensions.9_res           {- on line 40 -}                                           
Compilation of module: Graphics.Rendering.OpenGL.GL.Extensions)