{-# LANGUAGE FlexibleInstances #-} instance Num String where (+) = (++) (*) = undefined abs = undefined signum = undefined fromInteger = show negate = undefined main = print $ 2 + 2 == "4"
Standard input is empty
False
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!