Henk-Jan van Tuyl | 24 Mar 10:43 2013
Picon

hsc2hs fails?


L.S.,

I am trying to install SDL-ttf:

SDL-ttf-0.6.2>cabal install
:
:
Preprocessing library SDL-ttf-0.6.2...

dist\build\Graphics\UI\SDL\TTF\Version.hs:1:1:
     File name does not match module name:
     Saw: `Main'
     Expected: `Graphics.UI.SDL.TTF.Version'
Failed to install SDL-ttf-0.6.2
:

The error message is caused by the fact that Version.hs is empty; there is  
however a file
   dist\build\Graphics\UI\SDL\TTF\stdout.txt
that contains the contents of Version.hs; there is also a file
   dist\build\Graphics\UI\SDL\TTF\Types.hs
that is empty. These files are generated from Version.hsc and Types.hsc,  
in directory
   Graphics\UI\SDL\TTF

How can this occur? Any way to debug this?

Regards,
Henk-Jan van Tuyl
(Continue reading)


Gmane