github-0.1: samples/Repos/Forks/ListForks.hs
module ListForks where
import qualified Github.Repos.Forks as Github
import Data.List
main = do
possibleForks <- Github.forksFor "thoughtbot" "paperclip"
putStrLn $ either (("Error: "++) . show)
(intercalate "\n\n" . map formatFork)
possibleForks
formatFork fork =
(Github.githubUserLogin $ Github.repoOwner fork) ++ "\t" ++
(show $ Github.fromGithubDate $ Github.repoPushedAt fork) ++ "\n" ++
(Github.repoCloneUrl fork)