Upgrade to purescript 0.15.4

This commit is contained in:
Przemek Kaminski 2022-09-12 19:11:07 +02:00
parent 8078efd158
commit ac57a1162c
9 changed files with 18 additions and 140 deletions

View file

@ -6,7 +6,7 @@ import
owner = "justinwoo";
repo = "easy-purescript-nix";
rev = "master";
sha256 = "051fzxd03y0c63sll2bhn0h66dywy9lw6ylyh5vq8fymvix20q94";
sha256 = "03g9xq451dmrkq8kiz989wnl8k0lmj60ajflz44bhp7cm08hf3bw";
}
) {
inherit pkgs;

View file

@ -1,6 +1,6 @@
import (
builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/21.05.tar.gz";
sha256 = "1ckzhh24mgz6jd1xhfgx0i9mijk6xjqxwsshnvq789xsavrmsc36";
url = "https://github.com/NixOS/nixpkgs/archive/21.11.tar.gz";
sha256 = "162dywda2dvfj1248afxc45kcrg83appjd0nmdb541hl7rnncf02";
}
)

View file

@ -1,5 +1,5 @@
{
"devDependencies": {
"spago": "^0.20.3"
"spago": "^0.20.9"
}
}

View file

@ -1,125 +1,5 @@
{-
Welcome to your new Dhall package-set!
Below are instructions for how to edit this file for most use
cases, so that you don't need to know Dhall to use it.
## Warning: Don't Move This Top-Level Comment!
Due to how `dhall format` currently works, this comment's
instructions cannot appear near corresponding sections below
because `dhall format` will delete the comment. However,
it will not delete a top-level comment like this one.
## Use Cases
Most will want to do one or both of these options:
1. Override/Patch a package's dependency
2. Add a package not already in the default package set
This file will continue to work whether you use one or both options.
Instructions for each option are explained below.
### Overriding/Patching a package
Purpose:
- Change a package's dependency to a newer/older release than the
default package set's release
- Use your own modified version of some dependency that may
include new API, changed API, removed API by
using your custom git repo of the library rather than
the package set's repo
Syntax:
Replace the overrides' "{=}" (an empty record) with the following idea
The "//" or "⫽" means "merge these two records and
when they have the same value, use the one on the right:"
-------------------------------
let overrides =
{ packageName =
upstream.packageName // { updateEntity1 = "new value", updateEntity2 = "new value" }
, packageName =
upstream.packageName // { version = "v4.0.0" }
, packageName =
upstream.packageName // { repo = "https://www.example.com/path/to/new/repo.git" }
}
-------------------------------
Example:
-------------------------------
let overrides =
{ halogen =
upstream.halogen // { version = "master" }
, halogen-vdom =
upstream.halogen-vdom // { version = "v4.0.0" }
}
-------------------------------
### Additions
Purpose:
- Add packages that aren't already included in the default package set
Syntax:
Replace the additions' "{=}" (an empty record) with the following idea:
-------------------------------
let additions =
{ package-name =
{ dependencies =
[ "dependency1"
, "dependency2"
]
, repo =
"https://example.com/path/to/git/repo.git"
, version =
"tag ('v4.0.0') or branch ('master')"
}
, package-name =
{ dependencies =
[ "dependency1"
, "dependency2"
]
, repo =
"https://example.com/path/to/git/repo.git"
, version =
"tag ('v4.0.0') or branch ('master')"
}
, etc.
}
-------------------------------
Example:
-------------------------------
let additions =
{ benchotron =
{ dependencies =
[ "arrays"
, "exists"
, "profunctor"
, "strings"
, "quickcheck"
, "lcg"
, "transformers"
, "foldable-traversable"
, "exceptions"
, "node-fs"
, "node-buffer"
, "node-readline"
, "datetime"
, "now"
]
, repo =
"https://github.com/hdgarrood/purescript-benchotron.git"
, version =
"v7.0.0"
}
}
-------------------------------
-}
let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.14.2-20210613/packages.dhall sha256:64d7b5a1921e8458589add8a1499a1c82168e726a87fc4f958b3f8760cca2efe
https://github.com/purescript/package-sets/releases/download/psc-0.15.4-20220901/packages.dhall sha256:f1531b29c21ac437ffe5666c1b6cc76f0a9c29d3c9d107ff047aa2567744994f
let overrides = {=}

View file

@ -11,7 +11,7 @@ pkgs.mkShell {
name = "purescript-reactix-d3";
buildInputs = [
easy-ps.purs-0_14_2
easy-ps.purs-0_15_4
easy-ps.psc-package
build
pkgs.dhall-json

View file

@ -8,7 +8,6 @@ You can edit this file as you like.
, "effect"
, "functions"
, "prelude"
, "psci-support"
, "tuples"
, "typelevel"
, "typelevel-prelude"

View file

@ -1,37 +1,37 @@
'use strict';
exports.prjImpl = function projImpl1 (n, t) {
export function prjImpl(n, t) {
return t[n];
};
exports.t2_ = function t21 (a, b) {
export function t2_ (a, b) {
return [a,b];
};
exports.t3_ = function t31 (a,b,c) {
export function t3_ (a,b,c) {
return [a,b,c];
};
exports.t4_ = function t41 (a,b,c,d) {
export function t4_ (a,b,c,d) {
return [a,b,c,d];
};
exports.t5_ = function t51 (a,b,c,d,e) {
export function t5_ (a,b,c,d,e) {
return [a,b,c,d,e];
};
exports.t6_ = function t61 (a,b,c,d,e,f) {
export function t6_ (a,b,c,d,e,f) {
return [a,b,c,d,e,f];
};
exports.t7_ = function t71 (a,b,c,d,e,f,g) {
export function t7_ (a,b,c,d,e,f,g) {
return [a,b,c,d,e,f,g];
};
exports.t8_ = function t81 (a,b,c,d,e,f,g,h) {
export function t8_ (a,b,c,d,e,f,g,h) {
return [a,b,c,d,e,f,g,h];
};
exports.t9_ = function t91 (a,b,c,d,e,f,g,h,i) {
export function t9_ (a,b,c,d,e,f,g,h,i) {
return [a,b,c,d,e,f,g,h,i];
};

View file

@ -18,7 +18,8 @@ import Data.Tuple.Nested as DTN
import Data.Typelevel.Num (D0, D1, D2, D3, D4, D5, D6, D7, D8, D9, class Lt, class Nat, toInt, d0, d1, d2, d3, d4, d5, d6, d7, d8)
import Prelude (($))
import Prim.Row (class Cons)
import Type.RowList (Cons, Nil, kind RowList, class ListToRow)
import Prim.RowList (RowList)
import Type.RowList (Cons, Nil, class ListToRow)
-- | Safely coerce a `TupleN` pair into a PureScript Tuple
xt :: forall a b. T2 a b -> DT.Tuple a b

View file

@ -1,7 +1,5 @@
"use strict";
function lenTuple (string) {
export function lenTupleImpl (string) {
return [string, string.length]
}
exports.lenTupleImpl = lenTuple