Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to purescript 0.15.4 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/.psc*
/.purs*
/.psa*
/.spago/
34 changes: 34 additions & 0 deletions packages.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.15.4-20220725/packages.dhall
sha256:e56fbdf33a5afd2a610c81f8b940b413a638931edb41532164e641bb2a9ec29c

let overrides =
{ iterable =
{ dependencies =
[ "aff"
, "arrays"
, "effect"
, "foreign"
, "maybe"
, "prelude"
, "refs"
, "spec"
, "tailrec"
]
, repo = "https://github.com/dstevenson1/purescript-iterable.git"
, version = "c321620a009463accce6e3b17a26d1a21a869d10"
}
, tuples-native =
{ dependencies =
[ "prelude"
, "psci-support"
, "typelevel"
, "unsafe-coerce"
, "functions"
]
, repo = "https://github.com/dstevenson1/purescript-tuples-native.git"
, version = "e1faf3ec6ab402237d89aa3bcb350702987de597"
}
}

in upstream // overrides
30 changes: 30 additions & 0 deletions spago.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{-
Welcome to a Spago project!
You can edit this file as you like.

Need help? See the following resources:
- Spago documentation: https://github.com/purescript/spago
- Dhall language tour: https://docs.dhall-lang.org/tutorials/Language-Tour.html

When creating a new Spago project, you can use
`spago init --no-comments` or `spago init -C`
to generate this file without the comments in this block.
-}
{ name = "web-urlsearchparams"
, dependencies =
[ "console"
, "effect"
, "foreign-object"
, "iterable"
, "maybe"
, "nullable"
, "prelude"
, "quickcheck"
, "strings"
, "tuples"
, "tuples-native"
, "typelevel"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs", "test/**/*.purs" ]
}
26 changes: 13 additions & 13 deletions src/Web/URLSearchParams.js
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
"use strict";

exports.newImpl = function newImpl (x) {
export const newImpl = function newImpl (x) {
return new URLSearchParams(x);
};

exports.appendImpl = function appendImpl (x,k,v) {
export const appendImpl = function appendImpl (x,k,v) {
x.append(k,v);
};

exports.setImpl = function setImpl (x,k,v) {
export const setImpl = function setImpl (x,k,v) {
x.set(k,v);
};

exports.deleteImpl = function deleteImpl (x,k) {
export const deleteImpl = function deleteImpl (x,k) {
x.delete(k);
};

exports.getImpl = function getImpl (x,k) {
export const getImpl = function getImpl (x,k) {
return x.get(k);
};

exports.getAllImpl = function getAllImpl (x,k) {
export const getAllImpl = function getAllImpl (x,k) {
return x.getAll(k);
};

exports.hasImpl = function hasImpl (x,k) {
export const hasImpl = function hasImpl (x,k) {
return x.has(k);
};

exports.entriesImpl = function entriesImpl (x) {
export const entriesImpl = function entriesImpl (x) {
return x.entries();
};

exports.keysImpl = function keysImpl (x) {
export const keysImpl = function keysImpl (x) {
return x.keys();
};

exports.valuesImpl = function valuesImpl (x) {
export const valuesImpl = function valuesImpl (x) {
return x.values();
};

exports.sortImpl = function sortImpl (x) {
export const sortImpl = function sortImpl (x) {
x.sort();
};

exports.toStringImpl = function toStringImpl (x) {
export const toStringImpl = function toStringImpl (x) {
return x.toString();
};

exports.forEachImpl = function forEachImpl (x,f) {
export const forEachImpl = function forEachImpl (x,f) {
x.forEach(f);
};
4 changes: 2 additions & 2 deletions src/Web/URLSearchParams.purs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ module Web.URLSearchParams
) where

import Prelude (Unit, (<$>), (<<<), class Show)
import Data.Tuple.Native (T2)
import Data.Nullable (Nullable, toMaybe)
import Data.Maybe (Maybe)
import Data.Iterable (Iterator)
import Foreign.Object (Object)
import Data.Tuple.Native (T2)
import Effect (Effect)
import Foreign.Object (Object)
import Effect.Unsafe (unsafePerformEffect)
import Effect.Uncurried (EffectFn1, EffectFn2, EffectFn3, runEffectFn1, runEffectFn2, runEffectFn3, mkEffectFn2)

Expand Down
Loading