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:  GHC compiling for different platforms (Bernhard Lehnert)
   2. Re:  GHC compiling for different platforms (Colin Adams)
   3. Re:  GHC compiling for different platforms (Sean Bartell)
   4. Re:  GHC compiling for different platforms (Magnus Therning)
   5. Re:  GHC compiling for different platforms (Felipe Lessa)
   6. Re:  GHC compiling for different platforms (Magnus Therning)
   7. Re:  GHC compiling for different platforms (Felipe Lessa)
   8.  ghc profiler beginner (Jos? Prous)
   9.  Problems with IO actions (Adam Bergmark)
  10.  Is there a replacement for network-minihttp that allows lazy
      downloads? (Adam Bergmark)


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

Message: 1
Date: Tue, 30 Jun 2009 06:31:14 +0200
From: Bernhard Lehnert <b.lehn...@gmx.de>
Subject: Re: [Haskell-beginners] GHC compiling for different platforms
To: Magnus Therning <mag...@therning.org>
Cc: beginners@haskell.org
Message-ID: <1246336274.3472.3.ca...@sol>
Content-Type: text/plain

Am Montag, den 29.06.2009, 23:05 +0100 schrieb Magnus Therning:
> I don't think you'll have any success in running a 64-bit executable on a 32 
> bit system.

Any chances to compile for a 32 bit linux on a 64 bit Linux or do I need
an extra computer? Any other problems such as Intel/AMD/... or just
32bit/64bit? 





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

Message: 2
Date: Tue, 30 Jun 2009 05:34:23 +0100
From: Colin Adams <colinpaulad...@googlemail.com>
Subject: Re: [Haskell-beginners] GHC compiling for different platforms
To: Bernhard Lehnert <b.lehn...@gmx.de>
Cc: Magnus Therning <mag...@therning.org>, beginners@haskell.org
Message-ID:
        <1afdeaec0906292134v3171e8f0j6afd0c1a4faa2...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

You certainly don't need an extra computer, as you could run 32-bit
Linux in a VM.

2009/6/30 Bernhard Lehnert <b.lehn...@gmx.de>:
> Am Montag, den 29.06.2009, 23:05 +0100 schrieb Magnus Therning:
>> I don't think you'll have any success in running a 64-bit executable on a 32
>> bit system.
>
> Any chances to compile for a 32 bit linux on a 64 bit Linux or do I need
> an extra computer? Any other problems such as Intel/AMD/... or just
> 32bit/64bit?
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>


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

Message: 3
Date: Tue, 30 Jun 2009 01:39:49 -0400
From: Sean Bartell <wingedtachik...@gmail.com>
Subject: Re: [Haskell-beginners] GHC compiling for different platforms
To: Bernhard Lehnert <b.lehn...@gmx.de>
Cc: Magnus Therning <mag...@therning.org>, beginners@haskell.org
Message-ID:
        <dd3762960906292239h5ed30f7w763243b5a1d05...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I'm guessing the easiest way would be to download a 32-bit precompiled
version of GHC and use that. It should work if you have 32-bit libraries
installed, which your distro probably does by default.

I don't know about Haskell, but in C you could set up a chroot (your distro
might have docs). You could also try compiling Haskell yourself and messing
with configuration options.

Intel vs. AMD shouldn't make a difference.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.haskell.org/pipermail/beginners/attachments/20090630/863415c9/attachment-0001.html

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

Message: 4
Date: Tue, 30 Jun 2009 07:02:28 +0100
From: Magnus Therning <mag...@therning.org>
Subject: Re: [Haskell-beginners] GHC compiling for different platforms
To: beginners@haskell.org
Message-ID: <4a49aa74.4070...@therning.org>
Content-Type: text/plain; charset="utf-8"

Colin Adams wrote:
> You certainly don't need an extra computer, as you could run 32-bit
> Linux in a VM.

Yes, going the VM route is probably easiest.  IIRC Virtualbox can now run 
64-bit guests on a 32-bit host, so you'd be able to provide executables for 
both no matter what you run on your main system.

There was a call for a pre-made VM for Haskell development a while back (I 
think it was raised on haskell-cafe).  I'm not sure anything came of it, but 
it'd be worth searching through the archives to see if you can avoid 
installing guests yourself.

/M

-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
Url : 
http://www.haskell.org/pipermail/beginners/attachments/20090630/326b6de9/signature-0001.bin

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

Message: 5
Date: Tue, 30 Jun 2009 03:24:15 -0300
From: Felipe Lessa <felipe.le...@gmail.com>
Subject: Re: [Haskell-beginners] GHC compiling for different platforms
To: beginners@haskell.org
Message-ID: <20090630062415.ga30...@kira.casa>
Content-Type: text/plain; charset=us-ascii

On Tue, Jun 30, 2009 at 01:39:49AM -0400, Sean Bartell wrote:
> I don't know about Haskell, but in C you could set up a chroot (your distro
> might have docs).

chroot'ing is a nice solution in that it works almost for free
compared to virtualization, including being able to test
graphical apps (OpenGL, anyone?) with the very same hardware.

It may, however, be not so very straightforward to get started.
Gentoo has a nice guide somewhere about setting up a (Gentoo)
chroot.  After the first install, however, maintaining is a
breeze.

--
Felipe.


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

Message: 6
Date: Tue, 30 Jun 2009 09:09:30 +0100
From: Magnus Therning <mag...@therning.org>
Subject: Re: [Haskell-beginners] GHC compiling for different platforms
To: Felipe Lessa <felipe.le...@gmail.com>
Cc: beginners@haskell.org
Message-ID:
        <e040b520906300109p4dff95a9o658efae89c2aa...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On Tue, Jun 30, 2009 at 7:24 AM, Felipe Lessa<felipe.le...@gmail.com> wrote:
> On Tue, Jun 30, 2009 at 01:39:49AM -0400, Sean Bartell wrote:
>> I don't know about Haskell, but in C you could set up a chroot (your distro
>> might have docs).
>
> chroot'ing is a nice solution in that it works almost for free
> compared to virtualization, including being able to test
> graphical apps (OpenGL, anyone?) with the very same hardware.

There seems to be some support for OpenGL in VirtualBox these days[1].
 I have no experience with it myself though.

> It may, however, be not so very straightforward to get started.
> Gentoo has a nice guide somewhere about setting up a (Gentoo)
> chroot.  After the first install, however, maintaining is a
> breeze.

The big limitation with a chroot is of course that the surrounding
system puts limits on what you can run in the chroot, though for many
uses that doesn't really matter.

/M

[1]: http://www.phoronix.com/scan.php?page=news_item&px=NjkzOA

-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe


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

Message: 7
Date: Tue, 30 Jun 2009 09:28:44 -0300
From: Felipe Lessa <felipe.le...@gmail.com>
Subject: Re: [Haskell-beginners] GHC compiling for different platforms
To: Magnus Therning <mag...@therning.org>
Cc: beginners@haskell.org
Message-ID: <20090630122844.ga31...@kira.casa>
Content-Type: text/plain; charset=us-ascii

On Tue, Jun 30, 2009 at 09:09:30AM +0100, Magnus Therning wrote:
> > compared to virtualization, including being able to test
> > graphical apps (OpenGL, anyone?) with the very same hardware.
>
> There seems to be some support for OpenGL in VirtualBox these days[1].
>  I have no experience with it myself though.

That's why I said "very same hardware", because in a chroot there
are no additional software layers.

> The big limitation with a chroot is of course that the surrounding
> system puts limits on what you can run in the chroot, though for many
> uses that doesn't really matter.

Yes, of course, but for cross-compiling you don't really care
about that.  However if you cared, you could also try FreeBSD
jails, but I have never used them. :)

--
Felipe.


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

Message: 8
Date: Tue, 30 Jun 2009 12:38:32 -0400
From: Jos? Prous <hien...@gmail.com>
Subject: [Haskell-beginners] ghc profiler beginner
To: beginners@haskell.org
Message-ID:
        <fe6e81eb0906300938g571367bw283890ae84dde...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I never used the ghc profiler before, when I try to compile the program
with:
ghc -prof -auto -O2 -o Main --make Main.hs

I get:
Could not find module `Data.Binary.IEEE754':
Perhaps you haven't installed the profiling libraries for package
`data-binary-ieee754-0.3'?
Use -v to see a list of the files searched for.

Is there a way to tell the profiler to ignore the external libraries or I
have to recompile all the libraries with profiling enabled?

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.haskell.org/pipermail/beginners/attachments/20090630/78ea56f0/attachment-0001.html

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

Message: 9
Date: Wed, 1 Jul 2009 18:48:24 +0200
From: Adam Bergmark <a...@edea.se>
Subject: [Haskell-beginners] Problems with IO actions
To: beginners@haskell.org
Message-ID: <655a0b1f-2ec6-4fd6-ac67-146a41010...@edea.se>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

I have an issue with IO actions.
At the moment I have the following snippet of code, which works as I  
expect it to.

mapM_ (writeChan ch) . lines =<< hGetContents h

That is, it gets each line in the file and writes it to the channel.
Previously I had just:

writeChan ch =<< hGetContents h

but when i readChan this I get the empty string every time.

I have two questions:
  * I'm still a little unsure of why mapM_, sequence and the like are  
necessary, could someone please explain this, or point me somewhere  
where I can read up on it?
  * Why does this problem occur when there is only one action to  
perform?


Cheers
/ Adam Bergmark


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

Message: 10
Date: Thu, 2 Jul 2009 10:24:17 +0200
From: Adam Bergmark <a...@edea.se>
Subject: [Haskell-beginners] Is there a replacement for
        network-minihttp that   allows lazy downloads?
To: beginners@haskell.org
Message-ID: <d23abda7-01f7-4d95-9331-c88934594...@edea.se>
Content-Type: text/plain; charset="us-ascii"

I'm trying to write a program that will download possibly large files  
using HTTP.

In Real World Haskell I read:

Warning
The HTTP library used here does not read the HTTP result lazily. As a  
result, it can result in the consumption of a large amount of RAM when  
downloading large files such as         podcasts. Other libraries are  
available that do not have this limitation. We used this one because  
it is stable, easy to install, and reasonably easy to use. We suggest  
mini-http, available from Hackage, for serious HTTP needs.

Looking at 
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/network-minihttp 
  I see that minihttp is deprecated. Is there a replacement I can use?

/ Adam Bergmark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.haskell.org/pipermail/beginners/attachments/20090702/87454ee3/attachment.html

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

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


End of Beginners Digest, Vol 13, Issue 1
****************************************

Reply via email to