Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [1 of 1] Compiling Main ( Main.hs, Main.o )
- Main.hs:13:10:
- Couldn't match expected type ‘String -> b0’
- with actual type ‘Parser (String -> Int -> Params)’
- In the first argument of ‘(<$>)’, namely
- ‘Params
- <$> strOption (long "artist" <> help "Artist of track(s).")’
- In the first argument of ‘(<$>)’, namely
- ‘Params <$> strOption (long "artist" <> help "Artist of track(s).")
- <$> strOption (long "title" <> help "Title of the song.")’
- 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:13:10:
- Couldn't match expected type ‘String -> Params’
- with actual type ‘Parser b0’
- In the first argument of ‘(<$>)’, namely
- ‘Params <$> strOption (long "artist" <> help "Artist of track(s).")
- <$> strOption (long "title" <> help "Title of the song.")’
- 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.")
- In an equation for ‘params’:
- params
- = 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