Send Beginners mailing list submissions to
[email protected]
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
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: ghci parse error on input (Stephen Tetley)
2. Re: about installation of Haskell (Dave Bayer)
3. Re: how long it will take to install Haskell (Marc Weber)
4. Re: about installation of Haskell (Yitzchak Gale)
5. Re: about installation of Haskell (Dave Bayer)
6. Re: Getting into a Haskell project? (Marc Weber)
7. Re: how long it will take to install Haskell (aditya siram)
8. Re: Getting into a Haskell project? (Sriram Durbha)
----------------------------------------------------------------------
Message: 1
Date: Thu, 18 Mar 2010 13:32:39 +0000
From: Stephen Tetley <[email protected]>
Subject: Re: [Haskell-beginners] ghci parse error on input
Cc: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
On 18 March 2010 13:26, Chaddaï Fouché <[email protected]> wrote:
>
> That's probably due to you using GHCi in a version where the
> GHC-specific extension concerning # is active by default (with this
> extension (# 2, 3 #) is an unboxed strict pair). While it's probably
> possible to compile this code by making sure that the extension isn't
> active (for instance, using ghc instead of ghci), it is probably a
> better idea to avoid # as an operator name.
True - if you use -fglasgow-exts rather than adding extensions
selectively it bring in the conflicting extension (probably
-XMagicHash)
If you surround the export and definition of the # function with
whitespace it should still work.
> module Export
> (
> (^)
> , ( # )
> )
> where
> import Prelude hiding ((^))
------------------------------
Message: 2
Date: Thu, 18 Mar 2010 08:07:51 -0700
From: Dave Bayer <[email protected]>
Subject: Re: [Haskell-beginners] about installation of Haskell
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
On Mar 18, 2010, at 5:25 AM, Yitzchak Gale wrote:
> You seem to be trying to compile the GHC compiler manually.
> For most platforms, that is not the recommended way to start
> out. It is somewhat complicated, takes a long time, and is not
> even all that you need. There is probably a much easier way,
> depending on what operating system you are using.
If I may offer a contrary opinion for others reading this, one could be a
"beginner at Haskell" but otherwise confident with their system, and have a
strong preference for manual installs.
Across the board with Mac OS X and various flavors of Linux, my experience with
package managers has been that I would have saved time if I'd never heard of
them. Telling other people to use such a package manager is like telling them
to use your neighborhood fishmonger. If enough people actually take this
advice, maybe the fish will stop smelling! ;-)
I'll set up the core part of a Linux release, and various standard components I
don't really care about, using the package management system. I care about
Haskell. There's no way I'd let a package manager anywhere near Haskell. I've
been building from source since I was a Haskell (and Linux) beginner. One needs
to understand one's axe. If there's a problem one doesn't understand at the
core of one's system, it will surely fester and come back to haunt you.
There's a "rows vs columns" organizational issue with installing any package
one cares about. For a Unix distribution, it makes sense to spread out pieces
into /usr/local/lib and /usr/local/bin and so forth. One keeps a single version
of these components, and tries never to look at them. But did any early adopter
of GHC 6.12 want to give up on GHC 6.10? Does anyone really want to type sudo
to a pile of scripts one doesn't understand, and hasn't read? For a component
one cares about it, it is better to isolate all files in a single directory.
Alas, no canned distribution works this way for global installs, to my
knowledge. I'm not sure of the psychology at play here. This is another
assumption I'd like to see questioned.
This is one beef I have with package managers and binary installers. For
example, to bootstrap a build from source on OS X Snow Leopard, I needed to use
the binary installer, which made some unconventional and undocumented choices
for file locations. To monitor this (a variant should work on any Unix) I
create a file called "timestamp" before such an install, and afterwards run the
Unix command
sudo find -x / -newer timestamp -print >snapshot.txt
This documents every file that was created or changed across the system during
the install. There's a bunch of line noise one gets used to (no system is
quiet) but one can easily use this information to rip an install cleanly back
out after bootstrapping is complete.
My /usr/local includes
lrwxr-xr-x 1 root wheel 10 Jan 11 21:05 ghc -> ghc-6.12.1
drwxr-xr-x 7 dave wheel 238 Dec 25 07:46 ghc-6.10.4
drwxr-xr-x 7 dave wheel 238 Jan 8 18:52 ghc-6.12.1
The symbolic link points to the currently selected active GHC directory, which
is **user writeable** so I don't have to sudo to install into it. This gives me
assurance that I'm not writing files elsewhere in the system; my install script
doesn't even have permission. This also lets me toggle versions of GHC. I use
this same approach to every system like GHC that I install for myself.
I then need to put /usr/local/ghc/bin on my path. That's ok; as I said, I care
about GHC.
To build this way, use the --prefix flag for ./configure, as in
./configure --prefix=$prefix
make -j3
make install
make clean
------------------------------
Message: 3
Date: Thu, 18 Mar 2010 16:15:07 +0100
From: Marc Weber <[email protected]>
Subject: Re: [Haskell-beginners] how long it will take to install
Haskell
To: beginners <[email protected]>
Message-ID: <1268924514-sup-7...@nixos>
Content-Type: text/plain; charset=UTF-8
Excerpts from love_pku's message of Thu Mar 18 05:46:41 +0100 2010:
> Dear Sir or Madam:
> I met problems when install haskell. Following are the interface after
> do the command 'make',and it stay at the state 'Linking Setup'for a
> long time. So I am wondering how long it will take to finish 'linking
> setup'.
Depends on your computer :)
Seriously it shouldn't take that long.
Try watching your CPU usage (eg using top) and see whether ghc or a
linker is still working.
A bug report or help request should contain enough information so that
other know what you've been trying to do. You say 'installing haskell'.
There is no such "haskell". There are 4 or more Haskell compilers this
could refer to. So try providing more context such as:
My CPU is (If you use a 16Mhz embedded machine it's obvious why its taking
that
long..):
# cat /proc/cpuinfo | grep model\ name
model name: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz
model name: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz
My operating system is xx-Linux.
I'm trying to install glasgow Haskell from sources (give version,
please)
I'm trying to bootstrap ghc using ghc compiler: ...
Then it seems to stop at this line:
ghc --make ...
and nothing happens. Have I hit a bug or such?
Try to provide more context and people will try to help you.
Also note that there are two chatrooms: #haskell and #ghc on
irc.freenode.org. People may help you faster there and figure out what
exactly is wrong with your setup.
Depending on the additional information about operating system maybe
this thread should be moved to a more appropriate mailinglist.
Also try to find that directory it was trying to run Setup in and run
that ghc command manually (ghc has some verbose options you can apply)
Marc Weber
------------------------------
Message: 4
Date: Thu, 18 Mar 2010 17:23:00 +0200
From: Yitzchak Gale <[email protected]>
Subject: Re: [Haskell-beginners] about installation of Haskell
To: Dave Bayer <[email protected]>
Cc: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
Dave Bayer wrote:
> If I may offer a contrary opinion for others reading this,
> one could be a "beginner at Haskell" but otherwise
> confident with their system, and have a strong preference
> for manual installs.
There are many reasons why some people may prefer in
some circumstances, and other people in all circumstances,
to compile from source and not use any of the "easy install"
options.
Let's first find out what platform our original poster is on
so we'll know what the options are, and what their likely
consequences will be. And if the original poster
has a strong preference for manual compilation as you do -
we'll hear about that, too.
Regards,
Yitz
------------------------------
Message: 5
Date: Thu, 18 Mar 2010 08:34:40 -0700
From: Dave Bayer <[email protected]>
Subject: Re: [Haskell-beginners] about installation of Haskell
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
On Mar 18, 2010, at 8:23 AM, Yitzchak Gale wrote:
> Let's first find out what platform our original poster is on
> so we'll know what the options are, and what their likely
> consequences will be. And if the original poster
> has a strong preference for manual compilation as you do -
> we'll hear about that, too.
Yes, but this isn't a chat room, and archives of this conversation don't
auto-delete in a week. Anything one says to the original poster, one is also
saying to fifty lurkers and various people googling us years from now. I'm
often on the other end of this, trying to resolve a problem by googling an old
exchange.
I had to counter the blanket advice that building from scratch is discouraged.
That's not an official policy, nor is it necessarily good advice. On a random
flavor of Linux, if one is lucky the "package" version of GHC will be
sufficiently up-to-date to build a clean version from scratch. I wouldn't use
it after that.
------------------------------
Message: 6
Date: Thu, 18 Mar 2010 16:39:11 +0100
From: Marc Weber <[email protected]>
Subject: Re: [Haskell-beginners] Getting into a Haskell project?
To: beginners <[email protected]>
Message-ID: <1268926527-sup-4...@nixos>
Content-Type: text/plain; charset=UTF-8
> 6. [...]
Last but not least have a look at the Haskell wiki. It cointains many
stuff. If you can't find a page containing these recommendations add a
new wiki page and copy paste these steps.
A wiki is very important for most communities.
The most important thing to know about the Haskell wiki frontpage
(haskell.org) is that it tries to provide one click access to most
important data.
Wikis don't tell you much about programming - But no project will be
successful without a community.
Marc Weber
------------------------------
Message: 7
Date: Thu, 18 Mar 2010 11:16:36 -0500
From: aditya siram <[email protected]>
Subject: Re: [Haskell-beginners] how long it will take to install
Haskell
To: Marc Weber <[email protected]>
Cc: beginners <[email protected]>
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
I dunno, I've had the network package take a long time (almost 4
minutes) to compile. Doesn't matter if it is the Haskell platform or
manual install.
-deech
On 3/18/10, Marc Weber <[email protected]> wrote:
> Excerpts from love_pku's message of Thu Mar 18 05:46:41 +0100 2010:
>> Dear Sir or Madam:
>> I met problems when install haskell. Following are the interface after
>> do the command 'make',and it stay at the state 'Linking Setup'for a
>> long time. So I am wondering how long it will take to finish 'linking
>> setup'.
>
> Depends on your computer :)
>
> Seriously it shouldn't take that long.
>
> Try watching your CPU usage (eg using top) and see whether ghc or a
> linker is still working.
>
> A bug report or help request should contain enough information so that
> other know what you've been trying to do. You say 'installing haskell'.
> There is no such "haskell". There are 4 or more Haskell compilers this
> could refer to. So try providing more context such as:
>
> My CPU is (If you use a 16Mhz embedded machine it's obvious why its taking
> that
> long..):
> # cat /proc/cpuinfo | grep model\ name
> model name: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz
> model name: Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz
>
> My operating system is xx-Linux.
>
> I'm trying to install glasgow Haskell from sources (give version,
> please)
>
> I'm trying to bootstrap ghc using ghc compiler: ...
>
>
> Then it seems to stop at this line:
> ghc --make ...
>
> and nothing happens. Have I hit a bug or such?
>
>
> Try to provide more context and people will try to help you.
>
> Also note that there are two chatrooms: #haskell and #ghc on
> irc.freenode.org. People may help you faster there and figure out what
> exactly is wrong with your setup.
>
> Depending on the additional information about operating system maybe
> this thread should be moved to a more appropriate mailinglist.
>
>
> Also try to find that directory it was trying to run Setup in and run
> that ghc command manually (ghc has some verbose options you can apply)
>
> Marc Weber
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
------------------------------
Message: 8
Date: Thu, 18 Mar 2010 13:26:07 -0700
From: Sriram Durbha <[email protected]>
Subject: Re: [Haskell-beginners] Getting into a Haskell project?
To: Marc Weber <[email protected]>
Cc: beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
As you find the need to solve little problems, try to use Haskell for it .
And after you have a working solution, post it on
http://reddit.com/r/EnHaskell
Over time you will make friends who need programs that you can probably
implement with Haskell.
Whatever you do, start small. And dont give up. That's all there is to it.
Cheers
Ram
On Thu, Mar 18, 2010 at 8:39 AM, Marc Weber <[email protected]> wrote:
> > 6. [...]
>
> Last but not least have a look at the Haskell wiki. It cointains many
> stuff. If you can't find a page containing these recommendations add a
> new wiki page and copy paste these steps.
>
> A wiki is very important for most communities.
>
> The most important thing to know about the Haskell wiki frontpage
> (haskell.org) is that it tries to provide one click access to most
> important data.
>
> Wikis don't tell you much about programming - But no project will be
> successful without a community.
>
> Marc Weber
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.haskell.org/pipermail/beginners/attachments/20100318/c15c8bf4/attachment.html
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 21, Issue 21
*****************************************