The attached program works under hugs -98 but fails with GHC 5.04.2
with:
Params2b.hs:6:
No instance for `Show (r String)'
When deriving the `Show' instance for type `S'
Params2b.hs:6:
No instance for `Show (r Int)'
When deriving the `Show' instance for type `S'
This may be an intractable goal, but is any project out there anywhere
close to a working haskell 98(ish) implementation for the Palm Pilot?
There would probably have to be some compromises, like 16 bit Ints and
perhaps some other restrictions, but i don't think its impossible to get
some sort of
If a type that could be defined either by `data` or `newtype` (i.e., a
single-constructor type) is exported abstractly (without its constructor),
can the user of the type tell how the type was declared?
Dean
___
Haskell mailing list
[EMAIL PROTECTED]
yes.
data D = D Int
newtype N = N Int
there is a difference between
(N undefined) `seq` ()
and
(D undefined) `seq` ()
there has been a lot of discussion about this on the mailing list,
probably under a title of something like difference between data and
newtype.
--
Hal Daume III
Bill Wood wrote:
I think I got the right results for B_3000: [...]
Mathematica 4.1 computes B_3000 as follows:
In[1]:= BernoulliB[3000]
Out[1]=
-28919392162925009628147618267854828678617917853903846822112332719169192942048\