I am using GHCi as my interpreter,
The specifications for my assignment are to have a list of tuples of Ints ie
[(Int,Int)]
when I type
let edges = [(0,2),(0,3),(1,2),(2,3)]
GHCi automatically makes the number types Integer instead of Int, so I can’t test my program ie,
:t edges
edges :: [(Integer,Integer)]
How can I force a definition like that to use Int, instead of Integer??
Thanks!
You can specify the type when you enter it like this: