Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nghamilton/71723605fa7aabe4acadb476f8796e51 to your computer and use it in GitHub Desktop.
Save nghamilton/71723605fa7aabe4acadb476f8796e51 to your computer and use it in GitHub Desktop.
??? with types in ghci
λ: (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