title: Haskell : Integer to Int with int signature
body: <p>So i'm having problems with some variable types.</p>
  
  <pre><code>getOrdenado :: (String,Int,String,Int,Int) -&gt; Int
  getOrdenado (_,_,_,a,_) = a 
  
  listaOrdenado :: [(String,Int,String,Int,Int)] -&gt; [Int]
  listaOrdenado xs = map getOrdenado xs
  </code></pre>
  
  <p><strong>getOrdenado</strong> takes a certain <strong>Int</strong> value from a tuple contained in a list of tuples and <strong>listaOrdenado</strong> makes a list of all of thoose specific <strong>Int</strong>'s.</p>
  
  <p>This function is supposed to work on the following list:</p>
  
  <pre><code>firma = [("Ana", 30, "RH", 1500, 3), ("Rui", 40, "Vendas", 1000, 2),
          ("Luis", 45, "RH", 3333, 5), ("Maria", 55, "Admin", 2000, 4)]
  </code></pre>
  
  <p>But whenever i try running <strong>listaOrdenado</strong> with this list i get the following error </p>
  
  <pre><code>Couldn't match type `Integer' with `Int'
  Expected type: [(String, Int, String, Int, Int)]
    Actual type: [([Char], Integer, [Char], Integer, Integer)]
  In the first argument of `listaOrdenado', namely `firma'
  In the expression: listaOrdenado firma
  In an equation for `it': it = listaOrdenado firma
  </code></pre>
  
  <p>I am not allowed to use <strong>Integer</strong> in the class signature, only <strong>Int</strong> so i have no clue on how to solve this, nor do i have any clue why it says that those values in <strong>firma</strong> are <strong>Integer</strong>'s</p>