module Main (main) where
+import Control.Monad
import Data.Char (toUpper, isAlphaNum)
import Data.List
import Data.Maybe (isJust, fromJust)
import Data.Ord (comparing)
-import Monad
import System (exitWith, ExitCode(..))
import System.IO
import qualified System
-- | Ensure a value is quoted if needed
ensureQuoted :: String -> String
-ensureQuoted v = if not (all (\c -> (isAlphaNum c || c == '.')) v)
+ensureQuoted v = if not (all (\c -> isAlphaNum c || c == '.') v)
then '\'':v ++ "'"
else v