Cabal preprocessing

Stefan Holdermans stefan at
Wed Nov 29 16:21:18 EST 2006


> - are there strong reasons for putting preprocessed files in src?

One reason could be that, when distributing *sources*, you'd want the  
generated file to be included as well (that is, you want to regard it  
as a source file), for the system your program is to be compiled on  
might not have the preprocessor available and you don't want to make  
that a hard requirement... Of course, you can still achieve this by  
putting it in dist and put the file from dist in the generated  
tarball, but, arguably, the way it's done now, makes explicit that  
the file might be viewed as a source file.

Also, building executables with GHC --make requires (?) modules to be  
present in designated locations in the directory tree...

Just some thoughts, though...



More information about the Libraries mailing list