title: Haskell: lexical error in string/character literal at character 'i'
body: <p>I'm fairly new to Haskell programming and I'm having trouble understanding why I'm receiving this error in my code.</p>
  
  <p>My problem is as follows: Any positive integer i can be expressed as i = 2^n*k, where k is odd, that is, as a power of 2 times an odd number. We call n the exponent of 2 in i. For example, the exponent of 2 in 40 is 3 (because 40 = 2^3*5) whereas the exponent of 2 in 42 is 1. If i itself is odd, then n is zero. If, on the other hand, i is even, that means it can be divided by 2. Write a function exponentOfTwo for ﬁnding the exponent of 2 in its argument.</p>
  
  <p>I understand the psuedocode and it seems fairly simple: recursively divide i by 2 until result is odd, the number of times the division happens is n</p>
  
  <p>here is my code (line 31-32):</p>
  
  <pre><code>exponentOfTwo :: Int -&gt; Int  
  exponentOfTwo i = if odd i then 0 else 1 + exponentOfTwo (i 'div' 2)  
  </code></pre>
  
  <p>I'm receiving the error "lexical error in string/character literal at character 'i'" on line 32 column 62.</p>
  
  <p>I've tried searching for a solution to this error everywhere and so far I've had no luck.</p>