Skip to content

hdgarrood/bower-json

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

bower-json

A package that provides a data type and functions for working with bower.json package manifest files.

Example usage:

{-# LANGUAGE OverloadedStrings #-}
import System.IO
import System.Exit
import qualified Data.Text as T
import qualified Data.Text.IO as T

import Web.Bower.PackageMeta

main = do
  ePkgMeta <- decodeFile "bower.json"
  case ePkgMeta of
    Right pkgMeta ->
      if bowerPrivate pkgMeta
        then T.hPutStrLn stderr "error: package is private" >> exitFailure
        else putStrLn (runPackageName (bowerName pkgMeta))
    Left err -> do
      T.hPutStrLn stderr ("error: failed to parse bower.json: " `T.append` displayError err)
      exitFailure

See the documentation on Hackage for more details.

About

bower.json from Haskell

Resources

License

Stars

Watchers

Forks

Packages

No packages published