Guest User

Untitled

a guest
May 24th, 2015
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. [1 of 1] Compiling Main ( Main.hs, Main.o )
  2.  
  3. Main.hs:13:10:
  4. Couldn't match expected type ‘String -> b0’
  5. with actual type ‘Parser (String -> Int -> Params)’
  6. In the first argument of ‘(<$>)’, namely
  7. ‘Params
  8. <$> strOption (long "artist" <> help "Artist of track(s).")’
  9. In the first argument of ‘(<$>)’, namely
  10. ‘Params <$> strOption (long "artist" <> help "Artist of track(s).")
  11. <$> strOption (long "title" <> help "Title of the song.")’
  12. In the expression:
  13. Params <$> strOption (long "artist" <> help "Artist of track(s).")
  14. <$> strOption (long "title" <> help "Title of the song.")
  15. <$> strOption (long "count" <> help "Count of files to download.")
  16.  
  17. Main.hs:13:10:
  18. Couldn't match expected type ‘String -> Params’
  19. with actual type ‘Parser b0’
  20. In the first argument of ‘(<$>)’, namely
  21. ‘Params <$> strOption (long "artist" <> help "Artist of track(s).")
  22. <$> strOption (long "title" <> help "Title of the song.")’
  23. In the expression:
  24. Params <$> strOption (long "artist" <> help "Artist of track(s).")
  25. <$> strOption (long "title" <> help "Title of the song.")
  26. <$> strOption (long "count" <> help "Count of files to download.")
  27. In an equation for ‘params’:
  28. params
  29. = Params
  30. <$> strOption (long "artist" <> help "Artist of track(s).")
  31. <$> strOption (long "title" <> help "Title of the song.")
  32. <$> strOption (long "count" <> help "Count of files to download.")
  33.  
  34. Main.hs:25:8:
  35. Couldn't match expected type ‘[String] -> IO ()’
  36. with actual type ‘Parser Params’
  37. In the first argument of ‘(=<<)’, namely ‘params’
  38. In the expression: params =<< getArgs
Advertisement
Add Comment
Please, Sign In to add comment