Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Compiling Test.hs from reactive-fieldtrip (Nathan Huesken)
   2. Re:  Compiling Test.hs from reactive-fieldtrip
      (Stephen Blackheath [to Haskell-Beginners])
   3. Re:  Compiling Test.hs from reactive-fieldtrip (Brent Yorgey)
   4. Re:  profiling weirdness? (Thomas)
   5. Re:  Compiling Test.hs from reactive-fieldtrip (Nathan Huesken)


----------------------------------------------------------------------

Message: 1
Date: Tue, 8 Jun 2010 23:36:31 -0400
From: Nathan Huesken <hask...@lonely-star.org>
Subject: Re: [Haskell-beginners] Compiling Test.hs from
        reactive-fieldtrip
To: Biginners Haskell Mailinglist <beginners@haskell.org>
Message-ID: <20100608233631.1bc84...@samzwo>
Content-Type: text/plain; charset=US-ASCII

Hey,

Thank you for the answer. Now I get:

ghc --make Test -o Test
Warning: output was redirected with -o, but no output will be
generated because there is no Main module.

How am I supposed to comple this file?

On Tue, 8 Jun 2010 21:55:38 -0500
aditya siram <aditya.si...@gmail.com> wrote:

> To compile an executable, tack on -o <executable_name>, so for
> instance, ghc --make HelloWorld.hs -o HelloWorld
> 
> creates an executable called `HelloWorld'.
> -deech
> 
> On 6/8/10, Nathan Huesken <hask...@lonely-star.org> wrote:
> > Hi,
> >
> > I am trying to compile the Test.hs form reactive-fieltrip.
> > I did:
> > ghc --make
> > Test
> > (22:09) [1 of 3] Compiling FRP.Reactive.FieldTrip.Adapter
> > ( FRP/Reactive/FieldTrip/Adapter.hs,
> > FRP/Reactive/FieldTrip/Adapter.o ) [2 of 3] Compiling
> > FRP.Reactive.FieldTrip ( FRP/Reactive/FieldTrip.hs,
> > FRP/Reactive/FieldTrip.o ) [3 of 3] Compiling Test ( Test.hs,
> > Test.o )
> >
> > Wonderfull, only it is not giving me an executable, only Test.o.
> >
> > It has a main function, so how can I compile it?
> > Thanks!
> > nathan
> > _______________________________________________
> > Beginners mailing list
> > Beginners@haskell.org
> > http://www.haskell.org/mailman/listinfo/beginners
> >
> 



------------------------------

Message: 2
Date: Wed, 09 Jun 2010 15:47:55 +1200
From: "Stephen Blackheath [to Haskell-Beginners]"
        <mutilating.cauliflowers.step...@blacksapphire.com>
Subject: Re: [Haskell-beginners] Compiling Test.hs from
        reactive-fieldtrip
To: beginners@haskell.org
Message-ID: <4c0f0eeb.5010...@blacksapphire.com>
Content-Type: text/plain; charset=UTF-8

Nathan,

You must put the .hs on the input filename, but the '-o Test' isn't
necessary.  So you can type

ghc --make Test.hs

I took a look at this file, and the module name is 'Test'.  If you
change it to 'Main' it should work.  I think this requirement was
tightened up in newer versions of ghc.


Steve

On 09/06/10 15:36, Nathan Huesken wrote:
> Hey,
> 
> Thank you for the answer. Now I get:
> 
> ghc --make Test -o Test
> Warning: output was redirected with -o, but no output will be
> generated because there is no Main module.
> 
> How am I supposed to comple this file?
> 
> On Tue, 8 Jun 2010 21:55:38 -0500
> aditya siram <aditya.si...@gmail.com> wrote:
> 
>> To compile an executable, tack on -o <executable_name>, so for
>> instance, ghc --make HelloWorld.hs -o HelloWorld
>>
>> creates an executable called `HelloWorld'.
>> -deech
>>
>> On 6/8/10, Nathan Huesken <hask...@lonely-star.org> wrote:
>>> Hi,
>>>
>>> I am trying to compile the Test.hs form reactive-fieltrip.
>>> I did:
>>> ghc --make
>>> Test
>>> (22:09) [1 of 3] Compiling FRP.Reactive.FieldTrip.Adapter
>>> ( FRP/Reactive/FieldTrip/Adapter.hs,
>>> FRP/Reactive/FieldTrip/Adapter.o ) [2 of 3] Compiling
>>> FRP.Reactive.FieldTrip ( FRP/Reactive/FieldTrip.hs,
>>> FRP/Reactive/FieldTrip.o ) [3 of 3] Compiling Test ( Test.hs,
>>> Test.o )
>>>
>>> Wonderfull, only it is not giving me an executable, only Test.o.
>>>
>>> It has a main function, so how can I compile it?
>>> Thanks!
>>> nathan
>>> _______________________________________________
>>> Beginners mailing list
>>> Beginners@haskell.org
>>> http://www.haskell.org/mailman/listinfo/beginners
>>>
>>
> 
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
> 


------------------------------

Message: 3
Date: Wed, 9 Jun 2010 02:41:19 -0400
From: Brent Yorgey <byor...@seas.upenn.edu>
Subject: Re: [Haskell-beginners] Compiling Test.hs from
        reactive-fieldtrip
To: beginners@haskell.org
Message-ID: <20100609064119.ga30...@seas.upenn.edu>
Content-Type: text/plain; charset=us-ascii

The .hs isn't necessary either.  Here's the real answer: you simply
need to add a -main-is flag to tell ghc that the module containing
'main' is not called 'Main'.  So:

  ghc --make Test -main-is Test

should do the trick.

-Brent

On Wed, Jun 09, 2010 at 03:47:55PM +1200, Stephen Blackheath [to 
Haskell-Beginners] wrote:
> Nathan,
> 
> You must put the .hs on the input filename, but the '-o Test' isn't
> necessary.  So you can type
> 
> ghc --make Test.hs
> 
> I took a look at this file, and the module name is 'Test'.  If you
> change it to 'Main' it should work.  I think this requirement was
> tightened up in newer versions of ghc.
> 
> 
> Steve
> 
> On 09/06/10 15:36, Nathan Huesken wrote:
> > Hey,
> > 
> > Thank you for the answer. Now I get:
> > 
> > ghc --make Test -o Test
> > Warning: output was redirected with -o, but no output will be
> > generated because there is no Main module.
> > 
> > How am I supposed to comple this file?
> > 
> > On Tue, 8 Jun 2010 21:55:38 -0500
> > aditya siram <aditya.si...@gmail.com> wrote:
> > 
> >> To compile an executable, tack on -o <executable_name>, so for
> >> instance, ghc --make HelloWorld.hs -o HelloWorld
> >>
> >> creates an executable called `HelloWorld'.
> >> -deech
> >>
> >> On 6/8/10, Nathan Huesken <hask...@lonely-star.org> wrote:
> >>> Hi,
> >>>
> >>> I am trying to compile the Test.hs form reactive-fieltrip.
> >>> I did:
> >>> ghc --make
> >>> Test
> >>> (22:09) [1 of 3] Compiling FRP.Reactive.FieldTrip.Adapter
> >>> ( FRP/Reactive/FieldTrip/Adapter.hs,
> >>> FRP/Reactive/FieldTrip/Adapter.o ) [2 of 3] Compiling
> >>> FRP.Reactive.FieldTrip ( FRP/Reactive/FieldTrip.hs,
> >>> FRP/Reactive/FieldTrip.o ) [3 of 3] Compiling Test ( Test.hs,
> >>> Test.o )
> >>>
> >>> Wonderfull, only it is not giving me an executable, only Test.o.
> >>>
> >>> It has a main function, so how can I compile it?
> >>> Thanks!
> >>> nathan
> >>> _______________________________________________
> >>> Beginners mailing list
> >>> Beginners@haskell.org
> >>> http://www.haskell.org/mailman/listinfo/beginners
> >>>
> >>
> > 
> > _______________________________________________
> > Beginners mailing list
> > Beginners@haskell.org
> > http://www.haskell.org/mailman/listinfo/beginners
> > 
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://www.haskell.org/mailman/listinfo/beginners


------------------------------

Message: 4
Date: Wed, 09 Jun 2010 13:18:44 +0200
From: Thomas <hask...@phirho.com>
Subject: Re: [Haskell-beginners] profiling weirdness?
To: beginners@haskell.org
Message-ID: <4c0f7894.4080...@phirho.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Thank you, Daniel!

I start to understand the issue.
Actually I could see the SCC pragmas you mentioned in the generated Core 
- still without really understanding how all of them could have been hit 
by a single run, but I'm sure I could figure that out once I really felt 
the need to dig deeper into Core files...
For now I'll focus on the less esoteric aspects of Haskell. ;-)

Regards,
Thomas



------------------------------

Message: 5
Date: Wed, 9 Jun 2010 09:57:17 -0400
From: Nathan Huesken <hask...@lonely-star.org>
Subject: Re: [Haskell-beginners] Compiling Test.hs from
        reactive-fieldtrip
To: beginners@haskell.org
Message-ID: <20100609095717.4ed9f...@samzwo.tch.harvard.edu>
Content-Type: text/plain; charset=US-ASCII

Hey,

Thanks, it compiles now.
But when I run it, I get a empty window not updating itself ...

Does the Test.hs from reactive-fieldtrip run correctly anywhere else?

Is reactive-fieldtrip up to date or is it outdated? (The last update is
May 2009 ...).

Regards,
Nathan

On Wed, 9 Jun 2010 02:41:19 -0400
Brent Yorgey <byor...@seas.upenn.edu> wrote:

> The .hs isn't necessary either.  Here's the real answer: you simply
> need to add a -main-is flag to tell ghc that the module containing
> 'main' is not called 'Main'.  So:
> 
>   ghc --make Test -main-is Test
> 
> should do the trick.
> 
> -Brent
> 
> On Wed, Jun 09, 2010 at 03:47:55PM +1200, Stephen Blackheath [to
> Haskell-Beginners] wrote:
> > Nathan,
> > 
> > You must put the .hs on the input filename, but the '-o Test' isn't
> > necessary.  So you can type
> > 
> > ghc --make Test.hs
> > 
> > I took a look at this file, and the module name is 'Test'.  If you
> > change it to 'Main' it should work.  I think this requirement was
> > tightened up in newer versions of ghc.
> > 
> > 
> > Steve
> > 
> > On 09/06/10 15:36, Nathan Huesken wrote:
> > > Hey,
> > > 
> > > Thank you for the answer. Now I get:
> > > 
> > > ghc --make Test -o Test
> > > Warning: output was redirected with -o, but no output will be
> > > generated because there is no Main module.
> > > 
> > > How am I supposed to comple this file?
> > > 
> > > On Tue, 8 Jun 2010 21:55:38 -0500
> > > aditya siram <aditya.si...@gmail.com> wrote:
> > > 
> > >> To compile an executable, tack on -o <executable_name>, so for
> > >> instance, ghc --make HelloWorld.hs -o HelloWorld
> > >>
> > >> creates an executable called `HelloWorld'.
> > >> -deech
> > >>
> > >> On 6/8/10, Nathan Huesken <hask...@lonely-star.org> wrote:
> > >>> Hi,
> > >>>
> > >>> I am trying to compile the Test.hs form reactive-fieltrip.
> > >>> I did:
> > >>> ghc --make
> > >>> Test
> > >>> (22:09) [1 of 3] Compiling FRP.Reactive.FieldTrip.Adapter
> > >>> ( FRP/Reactive/FieldTrip/Adapter.hs,
> > >>> FRP/Reactive/FieldTrip/Adapter.o ) [2 of 3] Compiling
> > >>> FRP.Reactive.FieldTrip ( FRP/Reactive/FieldTrip.hs,
> > >>> FRP/Reactive/FieldTrip.o ) [3 of 3] Compiling Test ( Test.hs,
> > >>> Test.o )
> > >>>
> > >>> Wonderfull, only it is not giving me an executable, only Test.o.
> > >>>
> > >>> It has a main function, so how can I compile it?
> > >>> Thanks!
> > >>> nathan
> > >>> _______________________________________________
> > >>> Beginners mailing list
> > >>> Beginners@haskell.org
> > >>> http://www.haskell.org/mailman/listinfo/beginners
> > >>>
> > >>
> > > 
> > > _______________________________________________
> > > Beginners mailing list
> > > Beginners@haskell.org
> > > http://www.haskell.org/mailman/listinfo/beginners
> > > 
> > _______________________________________________
> > Beginners mailing list
> > Beginners@haskell.org
> > http://www.haskell.org/mailman/listinfo/beginners
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
> 



------------------------------

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 24, Issue 9
****************************************

Reply via email to