The CircleCI REST API for Haskell.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/Network
test
.codeclimate.yml
.gitignore
CHANGELOG.md
LICENSE
README.md
Setup.hs
circle.yml Skeleton. Apr 26, 2016
circlehs.cabal

README.md

CircleCI   Code Climate   Hackage

CircleHs

The CircleCI REST API implementation in Haskell. For more info please see official API reference.

Work in progress.

Hello, CircleCI!

Let's obtain information about the user:

{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE LambdaCase #-}

import Network.CircleCI

main :: IO ()
main = runCircleCI getUserInfo
                   (AccountAPIToken "e64c67410f96ba2whatever")
    >>= \case
        Left problem -> print problem
        Right info   -> print info