| Maintainer | Profpatsch |
|---|---|
| Stability | experimental |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Yarn.Lock.Types
Description
- type Lockfile = MKMap PackageKey Package
- lockfileIkProxy :: Proxy Int
- data PackageKey = PackageKey {
- name :: Text
- npmVersionSpec :: Text
- data Keyed a = Keyed (NonEmpty PackageKey) a
- data Package = Package {
- version :: Text
- remote :: Remote
- dependencies :: [PackageKey]
- optionalDependencies :: [PackageKey]
- data Remote
- = FileRemote { }
- | GitRemote {
- gitRepoUrl :: Text
- gitRev :: Text
Documentation
type Lockfile = MKMap PackageKey Package Source #
Yarn lockfile.
It is a multi-keyed map (each value can be referenced by multiple keys).
This is achieved by using an intermediate key ik.
Attention: Might be changed to a newtype in a future release.
lockfileIkProxy :: Proxy Int Source #
Proxy type for our MKMap intermediate key
data PackageKey Source #
Key that indexes package for a specific version.
Constructors
| PackageKey | |
Fields
| |
Instances
Something with a list of PackageKeys pointing to it.
Constructors
| Keyed (NonEmpty PackageKey) a |
The actual npm package with dependencies and a way to download.
Constructors
| Package | |
Fields
| |
Information on where to download the package.
Constructors
| FileRemote | |
| GitRemote | |
Fields
| |