bower-json-0.3.0.0: bower.json from Haskell

Safe HaskellNone
LanguageHaskell2010

Web.BowerJson

Description

A data type representing the Bower.json package description file, together with a parser and related functions.

This code is based on the specification at https://github.com/bower/bower.json-spec.

Synopsis

Documentation

decodeFile :: FilePath -> IO (Either String BowerJson) Source

Read and attempt to decode a bower.json file.

data PackageName Source

A valid package name for a Bower package.

mkPackageName :: String -> Maybe PackageName Source

A smart constructor for a PackageName. It ensures that the package name satisfies the restrictions described at https://github.com/bower/bower.json-spec#name.

newtype Version Source

Constructors

Version 

Fields

runVersion :: String