Update to purescript 0.14 (#167)

This commit is contained in:
Victor Peter Rouven Müller 2021-03-03 20:16:22 +01:00 committed by GitHub
parent b3eb977096
commit ab8c1fe88c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 9 deletions

View File

@ -1,5 +1,5 @@
let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.13.6-20200127/packages.dhall sha256:06a623f48c49ea1c7675fdf47f81ddb02ae274558e29f511efae1df99ea92fb8
https://github.com/purescript/package-sets/releases/download/psc-0.14.0-20210302/packages.dhall sha256:20cc5b89cf15433623ad6f250f112bf7a6bd82b5972363ecff4abf1febb02c50
let overrides = {=}

View File

@ -10,7 +10,6 @@
, "exceptions"
, "foldable-traversable"
, "foreign"
, "globals"
, "lists"
, "maybe"
, "newtype"
@ -30,6 +29,7 @@
, "tuples"
, "type-equality"
, "unsafe-coerce"
, "js-uri"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs", "test/**/*.purs", "docs/**/*.purs" ]

View File

@ -1,6 +1,5 @@
module HTTPure.Utils
( module Global
, encodeURIComponent
( encodeURIComponent
, replacePlus
, urlDecode
) where
@ -9,12 +8,10 @@ import Prelude
import Data.Maybe as Maybe
import Data.String as String
import Global (decodeURIComponent) as Global
import Global.Unsafe (unsafeEncodeURIComponent)
import JSURI as JSURI
encodeURIComponent :: String -> String
encodeURIComponent = unsafeEncodeURIComponent
encodeURIComponent s = Maybe.fromMaybe s $ JSURI.encodeURIComponent s
replacePlus :: String -> String
@ -24,4 +21,4 @@ replacePlus =
urlDecode :: String -> String
urlDecode s =
Maybe.fromMaybe s $ Global.decodeURIComponent s
Maybe.fromMaybe s $ JSURI.decodeURIComponent s