circlehs-0.0.1: The CircleCI REST API for Haskell

Copyright(c) Denis Shevchenko, 2016
LicenseMIT
Maintainerme@dshevchenko.biz
Stabilityalpha
Safe HaskellNone
LanguageHaskell2010

CircleCI.Cache

Contents

Description

API call for work with project build's cache.

Synopsis

API call

clearCache Source

Arguments

:: ProjectPoint

Names of GitHub user/project.

-> CircleCIResponse CacheCleared

Info about clearing.

Clears build cache. Based on https://circleci.com/docs/api/#clear-cache.

Usage example:

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

import CircleCI

main :: IO ()
main = runCircleCI (clearCache $ ProjectPoint "denisshevchenko" "circlehs")
                   (AccountAPIToken "e64c674195bbc0dbe3f9676c6ba2whatever")
    >>= \case
        Left problem    -> print problem
        Right isCleared -> print isCleared

Type for response