News for hackers. Stuff that matters.
Re:WTFJS? by Locke1689 on Saturday February 13, 2010 @03:53AM (#1122766)

  Prelude> (0.1 + 0.2) == 0.3
  False
  Prelude Ratio> 1 % 10 + 2 % 10 == 3 % 10
  True
Re:WTFJS? by jrockway on Saturday February 13, 2010 @04:37AM (#1122827)
Or:

    ghci> 0.1 + 0.2 == (0.3 :: Ratio Int)
    True
Same type, less syntax.
Re:WTFJS? by regularfry on Saturday February 13, 2010 @06:59AM (#1122933)
That's cheating. Haskell isn't a language, it's The Word of Simon.

The question of which Simon is left as an exercise to the reader.