Re: [Hugs-users] Start hugs without loading Prelude.hs?
[BTW, your mailer is mangling From: lines]
Thanks for the tip. What's getting mangled?
On Mon, Dec 11, 2006 at 04:08:30PM +0000, Dave@haskell.org wrote:
I am now reading the Haskell 98 Revised Report.
Good plan. Reading chapters 6, 7 and 8 of the Report (not necessarily in that order) is a better way of getting acquainted with the Prelude than reading Prelude.hs from the Hugs source.
I am also reading the gentle intro to Haskell. I find the revised Haskell 98 report to be the clearest explanation (until MEGO and I have to take a break). Last night MEGO occurred when I started reading about patterns. I'll try again later today.
As I get a better understanding of the Prelude, I am wondering if there is a way to run hugs without the prelude file being loaded. Is that possible?
You can't prevent it being loaded, but you can hide all the names it defines by writing a module and loading that. (Not sure why you'd want to do that, though.)
I'm trying to understand what primitive operators are built into hugs that are then used to load the Prelude. (I'm a bottom-up type of person).
(If you still have that Prelude.hs you copied in the current directory, you should remove it.)
What I still don't understand is why that file being present affects the way hugs runs when hugs says it is ignoring the file. It's looking to me like Haskell/Hugs98 is shaping up to be my next big self-education project. Dave
On Mon, Dec 11, 2006 at 04:23:21PM +0000, dfeustel@mindspring.com wrote:
[BTW, your mailer is mangling From: lines]
Thanks for the tip. What's getting mangled?
When you start a new thread, your From: line is From: Dave@haskell.org, Feustel@haskell.org One of your replies to Mark Hills put his address into the From: line.
I'm trying to understand what primitive operators are built into hugs that are then used to load the Prelude. (I'm a bottom-up type of person).
I don't think that a bottom-up approach that goes through Hugs is the best way to learn Haskell (not that going through a compiler written in Haskell will be any better). You're better off taking the Haskell 98 Report as the baseline.
(If you still have that Prelude.hs you copied in the current directory, you should remove it.)
What I still don't understand is why that file being present affects the way hugs runs when hugs says it is ignoring the file.
The explanation is in the above messages of Mark Hills and myself; I can't think of another way to express it. Basically you put an internal Hugs module where it wasn't expected. Just don't do that.
participants (2)
-
dfeustel@mindspring.com -
Ross Paterson