Skip to content

Commit

Permalink
more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
justinwoo committed May 12, 2022
1 parent cd6e8f2 commit c0cb9a0
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 36 deletions.
20 changes: 10 additions & 10 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
"output"
],
"dependencies": {
"purescript-prelude": "^5.0.0",
"purescript-typelevel-prelude": "^6.0.0",
"purescript-record": "^3.0.0",
"purescript-variant": "^7.0.1",
"purescript-nullable": "^5.0.0",
"purescript-foreign-object": "^3.0.0",
"purescript-foreign": "^6.0.0",
"purescript-exceptions": "^5.0.0",
"purescript-arrays": "^6.0.0"
"purescript-prelude": "^6.0.0",
"purescript-typelevel-prelude": "^7.0.0",
"purescript-record": "^4.0.0",
"purescript-variant": "^8.0.0",
"purescript-nullable": "^6.0.0",
"purescript-foreign-object": "^4.0.0",
"purescript-foreign": "^7.0.0",
"purescript-exceptions": "^6.0.0",
"purescript-arrays": "^7.0.0"
},
"devDependencies": {
"purescript-assert": "^5.0.0"
"purescript-assert": "^6.0.0"
}
}
34 changes: 17 additions & 17 deletions ci.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ let
};
in

{ pkgs ? import nixpkgs {} }:
{ pkgs ? import nixpkgs { } }:

let
ezPscSrc = pkgs.fetchFromGitHub {
owner = "justinwoo";
repo = "easy-purescript-nix";
rev = "e8a1ffafafcdf2e81adba419693eb35f3ee422f8";
sha256 = "0bk32wckk82f1j5i5gva63f3b3jl8swc941c33bqc3pfg5cgkyyf";
};
ezPsc = import ezPscSrc { inherit pkgs; };
in
let
ezPscSrc = pkgs.fetchFromGitHub {
owner = "justinwoo";
repo = "easy-purescript-nix";
rev = "0ad5775c1e80cdd952527db2da969982e39ff592";
sha256 = "0x53ads5v8zqsk4r1mfpzf5913byifdpv5shnvxpgw634ifyj1kg";
};
ezPsc = import ezPscSrc { inherit pkgs; };
in

pkgs.mkShell {
buildInputs = [
ezPsc.purs-0_14_0
pkgs.nodePackages_10_x.bower
pkgs.nodePackages_10_x.pulp
];
}
pkgs.mkShell {
buildInputs = [
ezPsc.purs-0_15_0
ezPsc.pulp
pkgs.nodePackages_10_x.bower
];
}
4 changes: 2 additions & 2 deletions src/Simple/JSON.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function _parseJSON() { return JSON.parse.apply(this, arguments) };
export const _parseJSON = JSON.parse;

export const _undefined = undefined;

export function _unsafeStringify() { return JSON.stringify.apply(this, arguments) };
export const _unsafeStringify = JSON.stringify;
1 change: 1 addition & 0 deletions src/Simple/JSON.purs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module Simple.JSON
, read
, read'
, read_
, readAsForeign
, parseJSON
, undefined
, unsafeStringify
Expand Down
10 changes: 3 additions & 7 deletions test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

bower install

# NOTE: The following bug has been fixed, but the fix hasn't been upstreamed
# to the version of nixpkgs pinned in this repo:
#
# https://github.com/purescript-contrib/pulp/issues/392
#
# Once pulp has been updated, drop '--no-check-main'
pulp test --no-check-main
pulp build --include test

node ./test/index.mjs
3 changes: 3 additions & 0 deletions test/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { main } from "../output/Test.Main/index.js";

main();

0 comments on commit c0cb9a0

Please sign in to comment.