Removing prepending “0” output from Haskell toBinary function that converts number to binary string?

I am new to Haskell. My function is supposed to take an integer and convert it to a string in base 2. My code works correctly, but I would like to remove “0” from my results.

For example, toBinary 16 outputs “010000” rather than “10000”, as I would like.

Does anyone have any advice?

toBinary :: Integer -> (Char)

toBinary x = if (x == 0) then "0" else toBinary ( div x 2 ) ++ show(mod x 2 )