packages.dhall 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. {-
  2. Welcome to your new Dhall package-set!
  3. Below are instructions for how to edit this file for most use
  4. cases, so that you don't need to know Dhall to use it.
  5. ## Warning: Don't Move This Top-Level Comment!
  6. Due to how `dhall format` currently works, this comment's
  7. instructions cannot appear near corresponding sections below
  8. because `dhall format` will delete the comment. However,
  9. it will not delete a top-level comment like this one.
  10. ## Use Cases
  11. Most will want to do one or both of these options:
  12. 1. Override/Patch a package's dependency
  13. 2. Add a package not already in the default package set
  14. This file will continue to work whether you use one or both options.
  15. Instructions for each option are explained below.
  16. ### Overriding/Patching a package
  17. Purpose:
  18. - Change a package's dependency to a newer/older release than the
  19. default package set's release
  20. - Use your own modified version of some dependency that may
  21. include new API, changed API, removed API by
  22. using your custom git repo of the library rather than
  23. the package set's repo
  24. Syntax:
  25. Replace the overrides' "{=}" (an empty record) with the following idea
  26. The "//" or "⫽" means "merge these two records and
  27. when they have the same value, use the one on the right:"
  28. -------------------------------
  29. let overrides =
  30. { packageName =
  31. upstream.packageName // { updateEntity1 = "new value", updateEntity2 = "new value" }
  32. , packageName =
  33. upstream.packageName // { version = "v4.0.0" }
  34. , packageName =
  35. upstream.packageName // { repo = "https://www.example.com/path/to/new/repo.git" }
  36. }
  37. -------------------------------
  38. Example:
  39. -------------------------------
  40. let overrides =
  41. { halogen =
  42. upstream.halogen // { version = "master" }
  43. , halogen-vdom =
  44. upstream.halogen-vdom // { version = "v4.0.0" }
  45. }
  46. -------------------------------
  47. ### Additions
  48. Purpose:
  49. - Add packages that aren't already included in the default package set
  50. Syntax:
  51. Replace the additions' "{=}" (an empty record) with the following idea:
  52. -------------------------------
  53. let additions =
  54. { package-name =
  55. { dependencies =
  56. [ "dependency1"
  57. , "dependency2"
  58. ]
  59. , repo =
  60. "https://example.com/path/to/git/repo.git"
  61. , version =
  62. "tag ('v4.0.0') or branch ('master')"
  63. }
  64. , package-name =
  65. { dependencies =
  66. [ "dependency1"
  67. , "dependency2"
  68. ]
  69. , repo =
  70. "https://example.com/path/to/git/repo.git"
  71. , version =
  72. "tag ('v4.0.0') or branch ('master')"
  73. }
  74. , etc.
  75. }
  76. -------------------------------
  77. Example:
  78. -------------------------------
  79. let additions =
  80. { benchotron =
  81. { dependencies =
  82. [ "arrays"
  83. , "exists"
  84. , "profunctor"
  85. , "strings"
  86. , "quickcheck"
  87. , "lcg"
  88. , "transformers"
  89. , "foldable-traversable"
  90. , "exceptions"
  91. , "node-fs"
  92. , "node-buffer"
  93. , "node-readline"
  94. , "datetime"
  95. , "now"
  96. ]
  97. , repo =
  98. "https://github.com/hdgarrood/purescript-benchotron.git"
  99. , version =
  100. "v7.0.0"
  101. }
  102. }
  103. -------------------------------
  104. -}
  105. let upstream =
  106. https://github.com/purescript/package-sets/releases/download/psc-0.15.13-20231228/packages.dhall
  107. sha256:f61b8e3181e85976f495fd7c023506551914bc733f0b26cb209bc67e3c4f4024
  108. let overrides = {=}
  109. let additions = {=}
  110. in upstream // overrides // additions