[Haskell-cafe] hsc2hs fails?

Henk-Jan van Tuyl hjgtuyl at chello.nl
Sun Mar 24 10:43:53 CET 2013


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


-- 
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--



More information about the Haskell-Cafe mailing list