Guest User

Untitled

a guest
May 24th, 2015
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module Main ( main ) where
  2.  
  3. -- import Network.Download
  4. import System.Environment
  5. import Options.Applicative
  6.  
  7. data Params = Params
  8.     { artist :: String
  9.     , title :: String
  10.     , count :: Int }
  11.  
  12. params :: Parser Params
  13. params = Params
  14.     <$> strOption
  15.         ( long "artist"
  16.         <> help "Artist of track(s).")
  17.     <$> strOption
  18.         ( long "title"
  19.         <> help "Title of the song.")
  20.     <$> strOption
  21.         ( long "count"
  22.         <> help "Count of files to download.")
  23.  
  24. main :: IO ()
  25. main = params =<< getArgs
Advertisement
Add Comment
Please, Sign In to add comment