I'm new in Haskell. I'm trying to use integerFromInt from GHC.Num.Integer.
I tried to write integerFromInt
without import GHC.Num.Integer
and I got
Variable not in scope: integerFromInt :: Int -> Integer
I tried to write integerFromInt
with import GHC.Num.Integer
and I got
Could not find module ‘GHC.Num.Integer’
Perhaps you meant GHC.Integer (from integer-gmp-1.0.3.0)
I think I have to add something to cabal file, but I don't know what