On Thu, Dec 27, 2012 at 1:48 AM, Roman Cheplyaka
<roma@ro-che.info> wrote:
* Rustom Mody <rustompmody@gmail.com> [2012-12-26 20:12:17+0530]
> So is there any set of flags to make haskell literals less polymorphic?
Yes, there is!
% ghci -XRebindableSyntax
GHCi, version 7.6.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
> import Prelude hiding (fromInteger)
Prelude> let fromInteger = id
Prelude> :t 3
3 :: Integer
Roman