Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation seems outdated #517

Open
joaovaladares opened this issue Jan 3, 2025 · 0 comments
Open

Documentation seems outdated #517

joaovaladares opened this issue Jan 3, 2025 · 0 comments

Comments

@joaovaladares
Copy link

joaovaladares commented Jan 3, 2025

The following code snippet is present in the documentation as a form of an example:

import qualified GitHub as GH

main :: IO ()
main = do
    possibleUser <- GH.github' GH.userInfoForR "phadej"
    print possibleUser

However it actually doesn't even compile unless I do something like the following (which works and retrieves the info for that user):

{-# LANGUAGE OverloadedStrings #-}

module Main (main) where

import qualified GitHub as GH
import GitHub.Internal.Prelude (pack)

main :: IO ()
main = do
  possibleUser <- GH.github' GH.userInfoForR $ GH.mkUserName "phadej"
  print possibleUser

Is there wrong on my end or is it actually a known issue? I think other examples are also outdated. I can maybe go through them and try to make them work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant