isInteger

A useful snippet:

import Text.Regex.Posix ((=~))

isInteger :: String -> Bool
isInteger = (=~ "^[0-9]+$")