The following code snippet is present in the documentation as a form of an example:
importqualifiedGitHubasGHmain::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 #-}
moduleMain (main) whereimportqualifiedGitHubasGHimportGitHub.Internal.Prelude (pack)
main::IO()
main =do
possibleUser <-GH.github' GH.userInfoForR $GH.mkUserName "phadej"print possibleUserIs 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.
The following code snippet is present in the documentation as a form of an example:
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 #-} moduleMain (main) whereimportqualifiedGitHubasGHimportGitHub.Internal.Prelude (pack) main::IO() main =do possibleUser <-GH.github' GH.userInfoForR $GH.mkUserName "phadej"print possibleUserIs 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.