Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [1 of 1] Compiling Main ( Main.hs, Main.o )
- Main.hs:20:13:
- Couldn't match type ‘[Char]’ with ‘Int’
- Expected type: Parser Int
- Actual type: Parser String
- In the second argument of ‘(<*>)’, namely
- ‘strOption (long "count" <> help "Count of files to download.")’
- In the expression:
- Params <$> strOption (long "artist" <> help "Artist of track(s).")
- <*> strOption (long "title" <> help "Title of the song.")
- <*> strOption (long "count" <> help "Count of files to download.")
- Main.hs:25:8:
- Couldn't match expected type ‘[String] -> IO ()’
- with actual type ‘Parser Params’
- In the first argument of ‘(=<<)’, namely ‘params’
- In the expression: params =<< getArgs
Advertisement
Add Comment
Please, Sign In to add comment