Re: Prelude.hs?
[email protected] (Donald Bruce Stewart) Sat, 9 Dec 2006 13:48:43 +1100
| Newsgroups | gmane.comp.lang.haskell.hugs.bugs |
|---|---|
| Message-ID | <[email protected]> |
Dave:
> I have just built and installed Hugs 6.6 on AMD 64-bit OpenBSD 3.9.
> It seems to work ok, but I just discovered that the function
> primMinInt mentioned on page 13 of _The Haskell Road to Logic, Maths
> and Programming_ is not recognized. I also do not get 'Prelude>'
> as the prompt when I invoke hugs. I get 'Hugs>' instead. How do I
> get primMinInt to work?
Hmm, there's a few weird things in that bug report: Hugs 6.6? Do you
mean GHC 6.6 or Hugs Sep2006?
Anyway, primMinInt is just:
instance Bounded Int where
minBound = primMinInt
maxBound = primMaxInt
So you can get it as:
Hugs.Base> minBound :: Int
-2147483648
-- Don