Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A compatibility module that allows a restricted set of purs.json manifest | files to be used for publishing. The manifest must described a package | available on GitHub, and it must be convertable to a Bower manifest. | | Fully supporting the registry manifest format will require `purs publish` | and by extension Pursuit to relax the requirement that packages are hosted | on GitHub, because the registry does not have this requirement.
Synopsis
- toBowerPackage :: PursJson -> Either BowerError PackageMeta
- data PursJson = PursJson {}
- data PursJsonError = MalformedLocationField
- showPursJsonError :: PursJsonError -> Text
- asPursJson :: Parse PursJsonError PursJson
Documentation
toBowerPackage :: PursJson -> Either BowerError PackageMeta Source #
Convert a valid purs.json manifest into a bower.json manifest
A partial representation of the purs.json manifest format, including only | the fields required for publishing. | | https://github.com/purescript/registry/blob/master/v1/Manifest.dhall
This type is intended for compatibility with the Bower publishing pipeline, and does not accurately reflect all possible purs.json manifests. However, supporting purs.json manifests properly introduces breaking changes to the compiler and to Pursuit.
PursJson | |
|
data PursJsonError Source #