
26 Dec
2012
26 Dec
'12
3:18 p.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