You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/src/App/API.purs
+14-13Lines changed: 14 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,12 @@ module Registry.App.API
19
19
20
20
importRegistry.App.Prelude
21
21
22
-
importData.Argonaut.ParserasArgonaut.Parser
22
+
importCodec.JSON.DecodeErrorasCJ.DecodeError
23
23
importData.ArrayasArray
24
24
importData.Array.NonEmptyasNonEmptyArray
25
-
importData.Codec.ArgonautasCA
26
-
importData.Codec.Argonaut.CommonasCA.Common
27
-
importData.Codec.Argonaut.RecordasCA.Record
25
+
importData.Codec.JSONasCJ
26
+
importData.Codec.JSON.CommonasCJ.Common
27
+
importData.Codec.JSON.RecordasCJ.Record
28
28
importData.ExistsasExists
29
29
importData.Foldable (traverse_)
30
30
importData.FoldableWithIndex (foldMapWithIndex)
@@ -41,6 +41,7 @@ import Data.String.NonEmpty as NonEmptyString
41
41
importData.String.RegexasRegex
42
42
importEffect.AffasAff
43
43
importEffect.Unsafe (unsafePerformEffect)
44
+
importJSONasJSON
44
45
importNode.ChildProcess.Types (Exit(..))
45
46
importNode.FS.AffasFS.Aff
46
47
importNode.FS.StatsasFS.Stats
@@ -436,7 +437,7 @@ publish maybeLegacyIndex payload = do
436
437
Except.throw $ "Found a valid purs.json file in the package source, but it does not typecheck."
437
438
Right _ ->case parseJson Manifest.codec string of
438
439
Left err ->do
439
-
Log.error $ "Failed to parse manifest: " <> CA.printJsonDecodeError err
440
+
Log.error $ "Failed to parse manifest: " <> CJ.DecodeError.print err
440
441
Except.throw $ "Found a purs.json file in the package source, but it could not be decoded."
441
442
Right manifest ->do
442
443
Log.debug $ "Read a valid purs.json manifest from the package source:\n" <> stringifyJson Manifest.codec manifest
@@ -625,10 +626,10 @@ publish maybeLegacyIndex payload = do
625
626
-- unused dependencies. This only affects old packages and we know
626
627
-- they compile, so we've decided it's an acceptable exception.
627
628
pure $ Tuple (Manifest receivedManifest) validatedResolutions
628
-
Right output ->caseArgonaut.Parser.jsonParser output of
629
+
Right output ->caseJSON.parse output of
629
630
Left parseErr ->Except.throw $ "Failed to parse purs graph output as JSON while finding unused dependencies: " <> parseErr
630
-
Right json ->caseCA.decode PursGraph.pursGraphCodec json of
631
-
Left decodeErr ->Except.throw $ "Failed to decode JSON from purs graph output while finding unused dependencies: " <> CA.printJsonDecodeError decodeErr
631
+
Right json ->caseCJ.decode PursGraph.pursGraphCodec json of
632
+
Left decodeErr ->Except.throw $ "Failed to decode JSON from purs graph output while finding unused dependencies: " <> CJ.DecodeError.print decodeErr
632
633
Right graph ->do
633
634
Log.debug "Got a valid graph of source and dependencies."
0 commit comments