在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:haskell-github/github开源软件地址:https://github.com/haskell-github/github开源编程语言:Haskell 100.0%开源软件介绍:GitHubThe GitHub API v3 for Haskell. Some functions are missing; these are functions where the GitHub API did not work as expected. The full GitHub API is in beta and constantly improving. InstallationIn your project's cabal file: Build-depends: github Or from the command line: cabal v1-install github Example UsageSee the samples in the samples/ directory. Note: some samples might be outdated. DocumentationFor details see the reference documentation on Hackage. Each module lines up with the hierarchy of documentation from the GitHub API. Request functions (ending with IO functions produce an Many function have samples under
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
import Prelude.Compat
import Data.Text (Text, pack)
import Data.Text.IO as T (putStrLn)
import Data.Monoid ((<>))
import GitHub (github')
import qualified GitHub
main :: IO ()
main = do
possibleUsers <- github' GitHub.usersFollowingR "phadej"
T.putStrLn $ either (("Error: " <>) . pack . show)
(foldMap ((<> "\n") . formatUser))
possibleUsers
formatUser :: GitHub.SimpleUser -> Text
formatUser = GitHub.untagName . GitHub.simpleUserLogin ContributionsPlease see CONTRIBUTING.md for details on how you can help. CopyrightCopyright 2011-2012 Mike Burns. Copyright 2013-2015 John Wiegley. Copyright 2016-2019 Oleg Grenrus. Available under the BSD 3-clause license. AlternativeLibrary |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论