Skip to content

Commit 5e45535

Browse files
committed
Upd: clean
1 parent 5e47f8c commit 5e45535

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Data/Schematic/Validation.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ validateJsonRepr
125125
-> [DemotedPathSegment]
126126
-> JsonRepr schema
127127
-> Validation ()
128-
validateJsonRepr sschema dpath jr = case jr of
128+
validateJsonRepr sschema dpath = \case
129129
ReprText t -> case sschema of
130130
SSchemaText scs -> validateConstraints dpath t scs
131131
ReprNumber n -> case sschema of
132132
SSchemaNumber scs -> validateConstraints dpath n scs
133-
ReprNull -> pure ()
133+
ReprNull -> pure ()
134134
ReprBoolean _ -> pure ()
135135
ReprArray v -> case sschema of
136136
SSchemaArray acs s -> do
@@ -156,8 +156,8 @@ validateJsonRepr sschema dpath jr = case jr of
156156
where
157157
validateUnion :: Sing us -> Union JsonRepr us -> Validation ()
158158
validateUnion ss r = case (ss,r) of
159-
(SCons (s :: Sing su) _, This v) -> validateJsonRepr s dpath v
160-
(SCons _ stl, That r') -> validateUnion stl r'
159+
(SCons s _, This v) -> validateJsonRepr s dpath v
160+
(SCons _ stl, That r') -> validateUnion stl r'
161161
(SNil,_) -> fail "Invalid union. Please report this as a bug"
162162

163163
parseAndValidateJson

0 commit comments

Comments
 (0)