We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a795eda commit acb86c9Copy full SHA for acb86c9
src/Data/Codec/Argonaut/Generic.purs
@@ -44,5 +44,7 @@ instance nullarySumCodecCtor ∷ IsSymbol name ⇒ NullarySumCodec (Constructor
44
J.fromString $ reflectSymbol (Proxy ∷ Proxy name)
45
nullarySumDecode name j = do
46
tag ← note (CA.Named name (CA.TypeMismatch "String")) (J.toString j)
47
- if tag /= reflectSymbol (Proxy ∷ Proxy name) then Left (CA.Named name (CA.UnexpectedValue j))
48
- else Right (Constructor NoArguments)
+ if tag /= reflectSymbol (Proxy ∷ Proxy name) then
+ Left (CA.Named name (CA.UnexpectedValue j))
49
+ else
50
+ Right (Constructor NoArguments)
0 commit comments