I noticed that the makefile in ghc/libraries is changed recently---
could it be broken? When building GHC HEAD on Mac OS X (Darwin, Power
PC), I got:
...
make -C libraries boot
rm -f -rf bootstrapping.Cabal
cp -R Cabal bootstrapping.Cabal
bootstrapping.Cabal \( -name "*.o" -o -name "
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Twan van Laarhoven wrote:
> There is one other alternative for parsing:
>"-" is a unary minus if and only if it is
>a) preceded by whitespace or one of "[({;,", and
>b) not followed by whitespace.
>
> So:
> x - 1 ==(-) x
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I wrote:
>> negative :: Num a => Integer -> a
>> negative a = fromInteger (negate a)
Oops, I forgot Rational literals, they make things a little more
complicated :(
Isaac
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Iavor Diatchki wrote:
> Hello,
>
> I agree with Simon on this one: "x-1" should parse as expected (i.e.,
> the infix operator "-" applied to two arguments "x" and "1"). Having
> this result in a type error would be confusing to both beginners and
> wo