Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit aee7669

Browse files
authored
Merge pull request #2 from cryogenian/update
ejson version bump
2 parents 2d46fb9 + 3edcf67 commit aee7669

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"purescript-pathy": "^3.0.2",
2121
"purescript-profunctor": "^2.0.0",
2222
"purescript-profunctor-lenses": "^2.6.0",
23-
"purescript-ejson": "^6.0.0"
23+
"purescript-ejson": "^7.0.0"
2424
},
2525
"devDependencies": {
2626
"purescript-argonaut": "^2.0.0",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"test": "pulp test -- --censor-lib --strict --stash"
77
},
88
"dependencies": {
9-
"pulp": "^10.0.1",
9+
"pulp": "^10.0.4",
1010
"purescript": "^0.10.7",
1111
"purescript-psa": "^0.4.0"
1212
}

src/SqlSquare/Constructors.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Prelude
44

55
import Data.Array as Arr
66
import Data.DateTime as DT
7-
import Data.Json.Extended.Signature (EJsonF(..))
7+
import Data.Json.Extended.Signature (EJsonF(..), EJsonMap(..))
88
import Data.Foldable as F
99
import Data.HugeNum as HN
1010
import Data.List as L
@@ -55,7 +55,7 @@ array ∷ ∀ t f. (Corecursive t (SqlF EJsonF), F.Foldable f) ⇒ f t → t
5555
array l = embed $ Literal $ Array $ Arr.fromFoldable l
5656

5757
map_ t. (Corecursive t (SqlF EJsonF), Ord t) Map.Map t t t
58-
map_ m = embed $ Literal $ Map $ Arr.fromFoldable $ Map.toList m
58+
map_ m = embed $ Literal $ Map EJsonMap $ Arr.fromFoldable $ Map.toList m
5959

6060
splice t f. Corecursive t (SqlF f) Maybe t t
6161
splice m = embed $ Splice m

src/SqlSquare/Lenses.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ _MapLiteral
164164
t
165165
. (Recursive t (S.SqlF EJ.EJsonF), Corecursive t (S.SqlF EJ.EJsonF))
166166
Prism' t (Array (t × t))
167-
_MapLiteral = prism' (embed ∘ S.LiteralEJ.Map) $ project ⋙ case _ of
168-
S.Literal (EJ.Map tpls) → M.Just tpls
167+
_MapLiteral = prism' (embed ∘ S.LiteralEJ.MapEJ.EJsonMap) $ project ⋙ case _ of
168+
S.Literal (EJ.Map (EJ.EJsonMap tpls)) → M.Just tpls
169169
_ → M.Nothing
170170

171171
_Splice

test/src/Search.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ needDistinctF ∷ Algebra (S.SqlF EJ.EJsonF) Boolean
175175
needDistinctF = case _ of
176176
S.SetLiteral ns → F.or ns
177177
S.Literal (EJ.Array ns) → F.or ns
178-
S.Literal (EJ.Map tpls) → F.any (\(a × b) → a || b) tpls
178+
S.Literal (EJ.Map (EJ.EJsonMap tpls)) → F.any (\(a × b) → a || b) tpls
179179
S.Splice Nothingfalse
180180
S.Splice (Just a) → a
181181
S.Binop { lhs, rhs } → lhs || rhs

0 commit comments

Comments
 (0)