27 Dec
2012
27 Dec
'12
4:18 a.m.
* Rustom Mody
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