Skip to content

Commit

Permalink
Merge pull request #16 from martyall/upgrade-spago-purs-v0.15
Browse files Browse the repository at this point in the history
Add spago configuration, upgrade to purs 0.15
  • Loading branch information
paluh authored Feb 13, 2023
2 parents 60a7504 + e51cf86 commit 6733a32
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 10 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"private": true,
"type": "module",
"scripts": {
"build": "pulp build -- --censor-lib --strict",
"test": "pulp test"
"build": "spago build",
"test": "spago test"
},
"devDependencies": {
"purescript": "^0.15.0",
"purescript-psa": "^0.7.3",
"purescript": "^0.13.0",
"pulp": "^13.0.0"
"spago": "^0.20.9"
}
}
4 changes: 4 additions & 0 deletions packages.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.15.2-20220630/packages.dhall sha256:691aff166010760f18ab1f4842ba6184f43747756e00579a050a2a46fa22d014

in upstream
22 changes: 22 additions & 0 deletions spago.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ name = "bytestrings"
, dependencies =
[ "arrays"
, "console"
, "effect"
, "exceptions"
, "foldable-traversable"
, "integers"
, "leibniz"
, "maybe"
, "newtype"
, "node-buffer"
, "partial"
, "prelude"
, "quickcheck"
, "quickcheck-laws"
, "quotient"
, "unsafe-coerce"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs", "test/**/*.purs" ]
}
10 changes: 4 additions & 6 deletions src/Data/ByteString.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
'use strict';

exports.unsafeIndex = function(buffer) {
export function unsafeIndex (buffer) {
return function(offset) {
return buffer[offset];
};
};

exports.realGetAtOffset = function(Nothing) {
export function realGetAtOffset (Nothing) {
return function(Just) {
return function(offset) {
return function(buffer) {
Expand All @@ -21,7 +19,7 @@ exports.realGetAtOffset = function(Nothing) {
};
};

exports.foldl = function(f) {
export function foldl (f) {
return function(z) {
return function(buf) {
var r = z;
Expand All @@ -34,7 +32,7 @@ exports.foldl = function(f) {
};
};

exports.foldr = function(f) {
export function foldr (f) {
return function(z) {
return function(buf) {
var r = z;
Expand Down

0 comments on commit 6733a32

Please sign in to comment.