[Haskell-cafe] writing a function to make a correspondance between type-level integers and value-level integers