Skip to content

Commit 34b3be8

Browse files
format
1 parent ebb69dd commit 34b3be8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Data/Codec/Argonaut/Compat.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module Data.Codec.Argonaut.Compat
33
( module Data.Codec.Argonaut.Compat
44
, module Data.Codec.Argonaut
5-
, module Common
5+
, module Common
66
) where
77

88
import Prelude

src/Data/Codec/Argonaut/Generic.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ instance nullarySumCodecCtor ∷ IsSymbol name ⇒ NullarySumCodec (Constructor
4444
J.fromString $ reflectSymbol (Proxy Proxy name)
4545
nullarySumDecode name j = do
4646
tag ← note (CA.Named name (CA.TypeMismatch "String")) (J.toString j)
47-
if tag /= reflectSymbol (Proxy Proxy name) then
47+
if tag /= reflectSymbol (Proxy Proxy name) then
4848
Left (CA.Named name (CA.UnexpectedValue j))
4949
else
5050
Right (Constructor NoArguments)

src/Data/Codec/Argonaut/Variant.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ variantCase proxy eacodec (GCodec dec enc) = GCodec dec' enc'
103103
dec' = ReaderT \j → do
104104
obj ← decode jobject j
105105
tag ← decode (prop "tag" string) obj
106-
if tag == reflectSymbol proxy then
106+
if tag == reflectSymbol proxy then
107107
case eacodec of
108108
Left a → pure (inj proxy a)
109109
Right codec → do

0 commit comments

Comments
 (0)