Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haskell cabal+hsc2hs

Can cabal use hsc2hs to create hs files? How?

I didn't find an answer in the manuals, googling, nor in other projects (had my hopes up for gtk2hs but it turns out that it doesn't use cabal)

like image 392
yairchu Avatar asked Jul 09 '09 09:07

yairchu


1 Answers

Yes, cabal understands that when you list module Foo in your .cabal file, and it finds Foo.hsc on disk, that it must run hsc2hs on the module first.

Cabal transparently handles the existence of .hsc files.

like image 73
Don Stewart Avatar answered Sep 28 '22 19:09

Don Stewart