packages feed

titlecase-1.0.1: Main.hs

module Main ( main ) where

import Data.Text.Titlecase
import System.Environment

main :: IO ()
main = getArgs >>= parseArgs >>= putStrLn . titlecase
  where parseArgs :: [String] -> IO String
        parseArgs [] = getContents
        parseArgs xs = return $ unwords xs