[jhc] flag to compile a single module?

Mark Wotton mwotton at gmail.com
Wed Sep 9 19:25:39 EDT 2009


should this work?

"""
9:24 ~/projects % cat test.hs
module Test where

l = 1000
9:24 ~/projects % jhc -c test.hs
jhc -c test.hs
jhc 0.7.3 (-n 0.7.2-28
)
Finding Dependencies...
Using Ho Cache: '/Users/mwotton/.jhc/cache'
Test                    [test.hs]
Typechecking...
[1 of 1] Test              
(.............................................)
Compiling...
[1 of 1] Test              
<..................................................>
jhc: src/FrontEnd/Representation.hs:98:9-24: No instance nor default  
method for class operation Data.Binary.put
"""

mark

On 10/09/2009, at 7:47 AM, David Roundy wrote:

> Ah yes, that was what I was looking for... (feeling silly).
>
> David
>
> On Wed, Sep 9, 2009 at 5:22 PM, John Meacham <john at repetae.net> wrote:
>> Hmmm.. I thought this worked with the '-c' option. If not, it is a  
>> bug.
>> It would allow parallel compilations with 'make' if you told it about
>> the module dependencies. (which you can extract with --annotate- 
>> source
>> right now, but I am adding a better way)
>>
>>        John
> _______________________________________________
> jhc mailing list
> jhc at haskell.org
> http://www.haskell.org/mailman/listinfo/jhc



More information about the jhc mailing list