title: First attempt at Haskell: Converting lower case letters to upper case
body: <p>I have recently started learning Haskell, and I've tried creating a function in order to convert a lower case word to an upper case word, it works, but I don't know how good it is and  I have some questions.
  Code:</p>
  
  <pre><code>lowerToUpperImpl element list litereMari litereMici = 
   do
    if not (null  list) then
     if (head list) == element then
       ['A'..'Z'] !! (length ['A'..'Z'] - length (tail list ) -1)
     else
       lowerToUpperImpl element (tail list) litereMari litereMici
    else
      '0' --never to be reached
  
  lowerToUpper element = lowerToUpperImpl element ['a'..'z'] ['A'..'Z'] ['a'..'z']
  
  lowerToUpperWordImpl word  = 
   do 
    if not (null word) then
     lowerToUpper (head (word)):(lowerToUpperWordImpl (tail word))
    else
     ""
  </code></pre>
  
  <ol>
  <li>I don't like the way I have passed the upper case and lower case
  letters , couldn't I just declare a global variables or something?</li>
  <li>What would your approach be in filling the dead else branch?</li>
  </ol>
  
  <p>What would your suggestions on improving this be?  </p>