 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible wrote:
> Yes, it's... a tad large. It *does* contain a complete copy of GCC, gas,
> ld, perl.exe (?!) and a big suite of precompiled libraries, with HTML
> documentation, a profiler, a debugger...
I guess it's a bit like downloading and installing VisualStudio just so
you can write a Hello World program in C++... It'll do it, but it's kind
of overkill. ;-)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> data Suit = Diamonds | Hearts | Clubs | Spades
>
> data Number =
> Ace | Two | Three | Four | Five | Six | Seven | Eight | Nine | Ten |
> Jack | Queen | King
>
> data Card = Card Suit Number
I get "parse error on input 'data'" for all those.
Guess I'm missing some #include or whatever it's called.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible <voi### [at] dev null> wrote:
> Invisible wrote:
> > Of course, it's still alpha quality.
> Strike a light... It seems the bit "alpha" sticker has gone. And the
> command history seems to work properly now. Neat...
Now it's only v0.01 beta?-)
--
- Warp
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
scott wrote:
>> data Suit = Diamonds | Hearts | Clubs | Spades
>>
>> data Number =
>> Ace | Two | Three | Four | Five | Six | Seven | Eight | Nine | Ten |
>> Jack | Queen | King
>>
>> data Card = Card Suit Number
>
> I get "parse error on input 'data'" for all those.
>
> Guess I'm missing some #include or whatever it's called.
Which way are you trying to execute this?
If you're trying to enter them interactively, don't. It doesn't work. ;-)
The GHC interactive interpretter ("GHCi") allows you to define variables
and use them later, but doesn't allow any other kinds of definitions
interactively.
If you write this stuff in a file and save it as, say, "Cards.hs", you
should be able to double-click that file and have GHCi automatically
open up and load it. You can then write expressions involving these types.
(Probably the next problem you'll trip over is that the types aren't
printable...)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
>> Strike a light... It seems the bit "alpha" sticker has gone. And the
>> command history seems to work properly now. Neat...
>
> Now it's only v0.01 beta?-)
But that's the wonderful thing about OSS, isn't it? It never actually
reaches release 1.0. :-D
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
> But that's the wonderful thing about OSS, isn't it? It never actually
> reaches release 1.0. :-D
Just like a progress bar in Windows:
ProgressBar1.Value = 1 - exp(time)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Invisible wrote:
> Strike a light... It seems the bit "alpha" sticker has gone.
Technically, if it was available for download, it's already beta. But I
guess that nomenclature already went out the window a few years ago.
--
Darren New, San Diego CA, USA (PST)
The question in today's corporate environment is not
so much "what color is your parachute?" as it is
"what color is your nose?"
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
scott wrote:
>> But that's the wonderful thing about OSS, isn't it? It never actually
>> reaches release 1.0. :-D
>
> Just like a progress bar in Windows:
>
> ProgressBar1.Value = 1 - exp(time)
Hey, at least OSS version numbers don't (usually) go backwards. :-P
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
>> ProgressBar1.Value = 1 - exp(time)
>
> Hey, at least OSS version numbers don't (usually) go backwards. :-P
Jsut checking you were awake :-)
Of course that should be 1-exp(-time)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
scott wrote:
>>> ProgressBar1.Value = 1 - exp(time)
>>
>> Hey, at least OSS version numbers don't (usually) go backwards. :-P
>
> Jsut checking you were awake :-)
>
> Of course that should be 1-exp(-time)
LOL! I didn't even notice that...
But Windows progress bars do, in fact, go both forwards and backwards,
seemingly at random. ;-)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |