hackage-cli-0.0.3.6: CLI tool for Hackage
CopyrightDuncan Coutts et al.
LicenseBSD-3-Clause
Maintainerlibraries@haskell.org
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Distribution.Server.Util.CabalRevisions

Description

Validation and helpers for Cabal revision handling

Synopsis

Documentation

diffCabalRevisions :: ByteString -> ByteString -> Either String [Change] Source #

Entry point to cabal revision validator

This takes an original and a revised .cabal decoded as Unicode String and performs validations. Returns either a validation error or a list of detected changes.

diffCabalRevisions' Source #

Arguments

:: Bool

check x-revision

-> ByteString

old revision

-> ByteString

new revision

-> Either String [Change] 

Like diffCabalRevisions but only optionally check x-revision field modifications.

data Change Source #

Constructors

Change Severity String String String 

Instances

Instances details
Show Change Source # 
Instance details

Defined in Distribution.Server.Util.CabalRevisions

insertRevisionField :: Int -> ByteString -> ByteString Source #

Insert or update "x-revision:" field