git.iko.soy/rowtype-yoga/purescript-yoga-json
on main help sign in
Rename some stuff
commit7fdf41d08263cfa5cacf32c269d180a73221ca9e authorMark Eibes <mark.eibes@gmail.com> dateTue 10 May 2022, 19:00 (4 years ago) parent536c4e8
10 files changed+11−19
README.md+2−2 bower.json+2−2 spago.dhall+1−1 src/JSON.js → src/Yoga/JSON.js src/JSON.purs → src/Yoga/JSON.purs+1−9 test/EnumSumGeneric.purs+1−1 test/Generic.purs+1−1 test/Inferred.purs+1−1 test/Main.purs+1−1 test/QuickStart.purs+1−1
README.md+2−2
@@ -1,4 +1,4 @@
1−# 🐏👑 purescript-json
1+# 🐏👑 purescript-yoga-json
22
33**Note**: This is a fork [simple-json](https://github.com/justinwoo/purescript-simple-json) ([MIT Licence](./LICENSE/simple-json.LICENSE)).
44
@@ -11,4 +11,4 @@
1111
1212## Migrate from `purescript-simple-json`
1313
14−`purescript-json` is a drop-in replacement for `purescript-simple-json`. Just change the imports from `Simple.JSON` to `JSON`.
14+`purescript-yoga-json` is a drop-in replacement for `purescript-simple-json`. Just change the imports from `Simple.JSON` to `Yoga.JSON`.
bower.json+2−2
@@ -1,11 +1,11 @@
11{
2− "name": "purescript-json",
2+ "name": "purescript-yoga-json",
33 "license": [
44 "MIT"
55 ],
66 "repository": {
77 "type": "git",
8− "url": "https://github.com/rowtype-yoga/purescript-json.git"
8+ "url": "https://github.com/rowtype-yoga/purescript-yoga-json.git"
99 },
1010 "ignore": [
1111 "**/.*",
spago.dhall+1−1
@@ -1,6 +1,6 @@
11{ name = "json"
22, license = "MIT"
3−, repository = "https://github.com/rowtype-yoga/purescript-json.git"
3+, repository = "https://github.com/rowtype-yoga/purescript-yoga-json.git"
44, dependencies =
55 [ "arrays"
66 , "bifunctors"
src/JSON.js → src/Yoga/JSON.jsrenamed

The content is the same.

src/JSON.purs → src/Yoga/JSON.pursrenamed+1−9
@@ -1,4 +1,4 @@
1−module JSON
1+module Yoga.JSON
22 ( E
33 , readJSON
44 , readJSON'
@@ -116,14 +116,6 @@ read ∷
116116 E a
117117read = runExcept <<< readImpl
118118
119−-- | Read a value of any type as Foreign to a type
120−readAsForeign ∷
121− ∀ a b.
122− ReadForeign a ⇒
123− b →
124− E a
125−readAsForeign = read <<< unsafeToForeign
126−
127119read' ∷
128120 ∀ a.
129121 ReadForeign a ⇒
test/EnumSumGeneric.purs+1−1
@@ -10,7 +10,7 @@ import Data.Show.Generic (genericShow)
1010import Effect (Effect)
1111import Foreign (Foreign)
1212import Foreign as Foreign
13−import JSON as JSON
13+import Yoga.JSON as JSON
1414import Test.Assert (assert)
1515import Type.Prelude (class IsSymbol, Proxy(..), reflectSymbol)
1616
test/Generic.purs+1−1
@@ -9,7 +9,7 @@ import Data.Show.Generic (genericShow)
99import Effect (Effect)
1010import Foreign (Foreign)
1111import Foreign as Foreign
12−import JSON as JSON
12+import Yoga.JSON as JSON
1313import Test.Assert (assert)
1414
1515data IntOrBoolean
test/Inferred.purs+1−1
@@ -9,7 +9,7 @@ import Effect (Effect)
99import Foreign (Foreign)
1010import Foreign as Foreign
1111import Record as Record
12−import JSON as JSON
12+import Yoga.JSON as JSON
1313import Test.Assert (assert)
1414import Type.Prelude (Proxy(..))
1515
test/Main.purs+1−1
@@ -13,7 +13,7 @@ import Effect (Effect)
1313import Effect.Exception (throw)
1414import Foreign (ForeignError(..), MultipleErrors)
1515import Foreign.Object (Object)
16−import JSON (class ReadForeign, class WriteForeign, readJSON, writeJSON)
16+import Yoga.JSON (class ReadForeign, class WriteForeign, readJSON, writeJSON)
1717import Test.Assert (assertEqual)
1818import Test.EnumSumGeneric as Test.EnumSumGeneric
1919import Test.Generic as Test.Generic
test/QuickStart.purs+1−1
@@ -9,7 +9,7 @@ import Data.Nullable (Nullable, toNullable)
99import Effect (Effect)
1010import Effect.Class.Console (log)
1111import Foreign (ForeignError(..))
12−import JSON as JSON
12+import Yoga.JSON as JSON
1313import Test.Assert (assertEqual)
1414
1515type MyRecordAlias =