Created
May 27, 2019 15:17
-
-
Save MagnificentPako/274daed3794698113453b977f54b18fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src/App.hs:61:18: error: | |
• Couldn't match type ‘[]’ | |
with ‘Web.Scotty.Internal.Types.ActionT T.Text IO’ | |
Expected type: Web.Scotty.Internal.Types.ActionT T.Text IO [Char] | |
Actual type: [[Char]] | |
• In a stmt of a 'do' block: | |
names <- mapM | |
(\ h | |
-> do n <- liftIO $ Data.Cache.lookup cache h | |
name <- case n of | |
Just name -> name | |
Nothing -> ... | |
return name) | |
pins | |
In the second argument of ‘($)’, namely | |
‘do pinLsResp <- liftIO $ runPinLs manager | |
req <- request | |
let cache = ... | |
pins = ... | |
names <- mapM | |
(\ h | |
-> do n <- liftIO $ Data.Cache.lookup cache h | |
....) | |
pins | |
....’ | |
In a stmt of a 'do' block: | |
get "/pins" | |
$ do pinLsResp <- liftIO $ runPinLs manager | |
req <- request | |
let cache = ... | |
pins = ... | |
names <- mapM | |
(\ h | |
-> do n <- liftIO $ Data.Cache.lookup cache h | |
....) | |
pins | |
.... | |
| | |
61 | names <- mapM (\h -> do | |
| ^^^^^^^^^^^^^^... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment