{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Monad.IO.Class import Web.Twitter.Conduit import System.Environment import Common import Control.Lens main :: IO () main = runTwitterFromEnv' $ do [statusIdStr] <- liftIO getArgs let sId = read statusIdStr targetStatus <- call $ showId sId liftIO . putStrLn $ "Unfavorite Tweet: " ++ targetStatus ^. to show res <- call $ favoritesDestroy sId liftIO $ print res