Created
March 6, 2017 16:20
-
-
Save nghamilton/71723605fa7aabe4acadb476f8796e51 to your computer and use it in GitHub Desktop.
??? with types in ghci
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
λ: (flip cacheRecipes') | |
<function> | |
it :: [Int] -> Text -> IO () | |
λ: :t (unsafeRight <$> getAuth) | |
(unsafeRight <$> getAuth) :: IO Data.Text.Internal.Text | |
λ: :t ((flip cacheRecipes') [67555]) | |
((flip cacheRecipes') [67555]) :: Text -> IO () | |
λ: :t (unsafeRight <$> getAuth) >> ((flip cacheRecipes') [67555]) | |
<interactive>:1:31: error: | |
• Couldn't match expected type ‘IO b’ | |
with actual type ‘Text -> IO ()’ | |
• Probable cause: ‘flip’ is applied to too few arguments | |
In the second argument of ‘(>>)’, namely | |
‘((flip cacheRecipes') [67555])’ | |
In the expression: | |
(unsafeRight <$> getAuth) >> ((flip cacheRecipes') [67555]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment