diff --git a/README.adoc b/README.adoc index 873fe28..fc0cafa 100644 --- a/README.adoc +++ b/README.adoc @@ -20,79 +20,20 @@ See link:CONTRIBUTING{outfilesuffix}[CONTRIBUTING], which describes our processe === How to depend on the project from another PureScript project -None of our libraries are on Bower, or in a spago package set. You can depend -on this library by adding it to your project's spago package set as an -additional dependency in your packages.dhall file: +This repo contains IO Global's standard psc package set. It extends the latest +package set from `psc-package` and adds a few of our own packages to the set +(inluding `web-common` its self). In your project's `packages.dhall`, you can +set this project's package set as your upstream package set, and override or +add additional packages if you need to: ---- -web-common = - { dependencies = - [ "aff" - , "aff-promise" - , "affjax" - , "argonaut-codecs" - , "argonaut-core" - , "arrays" - , "avar" - , "bifunctors" - , "bigints" - , "concurrent-queues" - , "console" - , "control" - , "coroutines" - , "datetime" - , "debug" - , "dom-indexed" - , "effect" - , "either" - , "enums" - , "exceptions" - , "filterable" - , "foldable-traversable" - , "foreign" - , "foreign-object" - , "free" - , "freeap" - , "freet" - , "functions" - , "halogen" - , "halogen-subscriptions" - , "identity" - , "integers" - , "json-helpers" - , "lists" - , "markdown" - , "maybe" - , "newtype" - , "nullable" - , "ordered-collections" - , "parallel" - , "prelude" - , "profunctor" - , "profunctor-lenses" - , "psci-support" - , "rationals" - , "servant-support" - , "strings" - , "tailrec" - , "transformers" - , "tuples" - , "undefinable" - , "unfoldable" - , "unsafe-coerce" - , "uuid" - , "web-dom" - , "web-events" - , "web-html" - , "web-socket" - , "web-uievents" - ] - , repo = "https://github.com/input-output-hk/web-common.git" - , version = "" - } +let upstream = + https://github.com/input-output-hk/purescript-web-common/releases/download/v1.0.0/packages.dhall ---- -It will then be available to install in your project using `spago install web-common` +You will then be able to install any package on the latest psc-package set, as +well as `json-helpers`, `servant-support`, `web-common`, and `markdown` via +`spago install`. === How to depend on the static sources in this project diff --git a/packages.dhall b/packages.dhall index a5b5600..19a6030 100644 --- a/packages.dhall +++ b/packages.dhall @@ -1,35 +1,154 @@ let upstream = - https://github.com/purescript/package-sets/releases/download/psc-0.14.4-20211005/packages.dhall sha256:2ec351f17be14b3f6421fbba36f4f01d1681e5c7f46e0c981465c4cf222de5be + https://github.com/purescript/package-sets/releases/download/psc-0.14.4-20211028/packages.dhall sha256:df6486e7fad6dbe724c4e2ee5eac65454843dce1f6e10dc35e0b1a8aa9720b26 let overrides = {=} let additions = - { matryoshka = - { dependencies = [] : List Text - , repo = "https://github.com/slamdata/purescript-matryoshka.git" - , version = "v0.4.0" - } - , numerics = - { dependencies = [] : List Text - , repo = "https://github.com/Proclivis/purescript-numerics" - , version = "v0.1.2" - } - , markdown = + { markdown = { dependencies = - [ "const", "datetime", "functors", "lists", "ordered-collections", "parsing", "partial", "precise", "prelude", "strings", "unicode", "validation" ] - , repo = "https://github.com/jhbertra/purescript-markdown" - , version = "a9fbc4c42acf7b4be908832698b69ed558912496" + [ "arrays" + , "assert" + , "bifunctors" + , "console" + , "const" + , "control" + , "datetime" + , "effect" + , "either" + , "enums" + , "foldable-traversable" + , "functors" + , "identity" + , "integers" + , "lists" + , "maybe" + , "newtype" + , "parsing" + , "partial" + , "precise" + , "prelude" + , "psci-support" + , "strings" + , "tuples" + , "unfoldable" + , "unicode" + , "validation" + ] + , repo = "https://github.com/input-output-hk/purescript-markdown" + , version = "022d8afd0d9e0ef8114da9e9ef5a67d9ffc86a29" } - , servant-support = - { dependencies = [] : List Text + , servant-support = + { dependencies = + [ "affjax" + , "argonaut-codecs" + , "argonaut-core" + , "prelude" + , "psci-support" + ] , repo = "https://github.com/input-output-hk/purescript-servant-support" , version = "93ea0fa97d0ba04e8d408bbba51749a92d6477f5" } - , json-helpers = - { dependencies = [] : List Text - , repo = "https://github.com/input-output-hk/purescript-bridge-json-helpers.git" - , version = "16de087fde6e2d07e6bdae51383131ab81efa82d" + , json-helpers = + { dependencies = + [ "aff" + , "argonaut-codecs" + , "argonaut-core" + , "arrays" + , "bifunctors" + , "contravariant" + , "control" + , "effect" + , "either" + , "enums" + , "foreign-object" + , "maybe" + , "newtype" + , "ordered-collections" + , "prelude" + , "profunctor" + , "psci-support" + , "quickcheck" + , "record" + , "spec" + , "spec-quickcheck" + , "transformers" + , "tuples" + , "typelevel-prelude" + ] + , repo = + "https://github.com/input-output-hk/purescript-bridge-json-helpers" + , version = "895db00f2fe97ee56b866bf1582b303d029c216a" + } + , web-common = + { dependencies = + [ "aff" + , "aff-promise" + , "affjax" + , "argonaut-codecs" + , "argonaut-core" + , "arrays" + , "avar" + , "bifunctors" + , "bigints" + , "concurrent-queues" + , "console" + , "control" + , "coroutines" + , "datetime" + , "debug" + , "dom-indexed" + , "effect" + , "either" + , "enums" + , "exceptions" + , "filterable" + , "foldable-traversable" + , "foreign" + , "foreign-object" + , "free" + , "freeap" + , "freet" + , "functions" + , "gen" + , "halogen" + , "halogen-subscriptions" + , "identity" + , "integers" + , "json-helpers" + , "lists" + , "markdown" + , "maybe" + , "newtype" + , "nonempty" + , "nullable" + , "ordered-collections" + , "parallel" + , "prelude" + , "profunctor" + , "profunctor-lenses" + , "psci-support" + , "quickcheck" + , "rationals" + , "servant-support" + , "spec" + , "spec-quickcheck" + , "strings" + , "tailrec" + , "transformers" + , "tuples" + , "undefinable" + , "unfoldable" + , "unsafe-coerce" + , "uuid" + , "web-dom" + , "web-events" + , "web-html" + , "web-socket" + , "web-uievents" + ] + , repo = "https://github.com/input-output-hk/purescript-web-common" + , version = "v1.0.0" } - } + } in upstream // overrides // additions diff --git a/spago-packages.nix b/spago-packages.nix index 48a50a3..6ca7e87 100644 --- a/spago-packages.nix +++ b/spago-packages.nix @@ -101,6 +101,18 @@ let installPhase = "ln -s $src $out"; }; + "assert" = pkgs.stdenv.mkDerivation { + name = "assert"; + version = "v5.0.0"; + src = pkgs.fetchgit { + url = "https://github.com/purescript/purescript-assert.git"; + rev = "71a3b1f3b9917c23691fdbb1858de171be871a10"; + sha256 = "0r1l7j67an8dy1w4xdpr8nc30lsxv31xwqph9mkfh3nd49jlyyd3"; + }; + phases = "installPhase"; + installPhase = "ln -s $src $out"; + }; + "avar" = pkgs.stdenv.mkDerivation { name = "avar"; version = "v4.0.0"; @@ -595,11 +607,11 @@ let "json-helpers" = pkgs.stdenv.mkDerivation { name = "json-helpers"; - version = "5f95ac160d58473a77e9c42d612db4f3d7c176ea"; + version = "895db00f2fe97ee56b866bf1582b303d029c216a"; src = pkgs.fetchgit { - url = "https://github.com/input-output-hk/purescript-bridge-json-helpers.git"; - rev = "5f95ac160d58473a77e9c42d612db4f3d7c176ea"; - sha256 = "1rwfmh7xqyghsf2jn2sfqm4hfn68pi3j2y5nh9a05widbjf0q7k3"; + url = "https://github.com/input-output-hk/purescript-bridge-json-helpers"; + rev = "895db00f2fe97ee56b866bf1582b303d029c216a"; + sha256 = "0jwhv9a4xhc65hxas8d00g6ax10q3w4xvlm8bp3dl1p6vav98988"; }; phases = "installPhase"; installPhase = "ln -s $src $out"; @@ -617,6 +629,18 @@ let installPhase = "ln -s $src $out"; }; + "lcg" = pkgs.stdenv.mkDerivation { + name = "lcg"; + version = "v3.0.0"; + src = pkgs.fetchgit { + url = "https://github.com/purescript/purescript-lcg.git"; + rev = "8fb2eb16bbba2cee1d115a6729659ac649da811b"; + sha256 = "04r9bmx9kc3jqx59hh9yqqkl95mf869la9as5h36jv85ynn464dx"; + }; + phases = "installPhase"; + installPhase = "ln -s $src $out"; + }; + "lists" = pkgs.stdenv.mkDerivation { name = "lists"; version = "v6.0.1"; @@ -631,10 +655,10 @@ let "markdown" = pkgs.stdenv.mkDerivation { name = "markdown"; - version = "a9fbc4c42acf7b4be908832698b69ed558912496"; + version = "022d8afd0d9e0ef8114da9e9ef5a67d9ffc86a29"; src = pkgs.fetchgit { - url = "https://github.com/jhbertra/purescript-markdown"; - rev = "a9fbc4c42acf7b4be908832698b69ed558912496"; + url = "https://github.com/input-output-hk/purescript-markdown"; + rev = "022d8afd0d9e0ef8114da9e9ef5a67d9ffc86a29"; sha256 = "008f2wvvddg436b84kgpwz8m5h912xg1wqq73p97i79zaq13w9zm"; }; phases = "installPhase"; @@ -881,6 +905,30 @@ let installPhase = "ln -s $src $out"; }; + "quickcheck" = pkgs.stdenv.mkDerivation { + name = "quickcheck"; + version = "v7.1.0"; + src = pkgs.fetchgit { + url = "https://github.com/purescript/purescript-quickcheck.git"; + rev = "990fa1cf14b48b827d9b2d115b1c6977c4b0a76d"; + sha256 = "1dxchng3r2mad0505a0c7cc35vs1f7y2xb5i13p59jpdz6ijqa9k"; + }; + phases = "installPhase"; + installPhase = "ln -s $src $out"; + }; + + "random" = pkgs.stdenv.mkDerivation { + name = "random"; + version = "v5.0.0"; + src = pkgs.fetchgit { + url = "https://github.com/purescript/purescript-random.git"; + rev = "3e02da113c7afbac37ea4e16188c39d3057314d5"; + sha256 = "1v6ykgp8jmx488hq8mgb0l0sf1nyhjs6wq0w279iyibk9jxc6nib"; + }; + phases = "installPhase"; + installPhase = "ln -s $src $out"; + }; + "rationals" = pkgs.stdenv.mkDerivation { name = "rationals"; version = "v5.0.0"; @@ -953,6 +1001,18 @@ let installPhase = "ln -s $src $out"; }; + "spec-quickcheck" = pkgs.stdenv.mkDerivation { + name = "spec-quickcheck"; + version = "v4.0.0"; + src = pkgs.fetchgit { + url = "https://github.com/purescript-spec/purescript-spec-quickcheck.git"; + rev = "c2991f475b8fa11de8b68bcb5895b36be04d1e82"; + sha256 = "01xcbfyqzax9c5najbfy12q0nvfklfm37llj2vkmi3wgkskg4prz"; + }; + phases = "installPhase"; + installPhase = "ln -s $src $out"; + }; + "st" = pkgs.stdenv.mkDerivation { name = "st"; version = "v5.0.1";