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

Commit

Permalink
Merge pull request #6 from garyb/updates
Browse files Browse the repository at this point in the history
Misc minor updates
  • Loading branch information
garyb authored Dec 21, 2016
2 parents 9c70687 + e515d33 commit 23a33fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/Data/Json/Extended.purs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module Data.Json.Extended
, getEJson
, roll
, unroll
, head

, null
, boolean
Expand Down Expand Up @@ -71,6 +72,9 @@ unroll =
>>> Mu.unroll
>>> map EJson

head EJson Sig.EJsonF (Mu.Mu Sig.EJsonF)
head = Mu.unroll <<< getEJson

instance eqEJsonEq EJson where
eq (EJson a) (EJson b) =
eq1 (Mu.unroll a) (Mu.unroll b)
Expand Down Expand Up @@ -103,8 +107,8 @@ instance encodeJsonEJson ∷ EncodeJson EJson where
asKey
EJson
M.Maybe String
asKey (EJson x) =
case Mu.unroll x of
asKey (EJson y) =
case Mu.unroll y of
Sig.String k → pure k
_ → M.Nothing

Expand Down
1 change: 0 additions & 1 deletion src/Data/Json/Extended/Signature/Core.purs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ data EJsonF a
| Boolean Boolean
| Integer Int
| Decimal HN.HugeNum
| String String
| Timestamp String
| Date String
| Time String
Expand Down

0 comments on commit 23a33fb

Please sign in to comment.