@@ -22,7 +22,6 @@ import Data.Array as Array
22
22
import Data.Array.NonEmpty (NonEmptyArray )
23
23
import Data.Codec.JSON as CJ
24
24
import Data.Codec.JSON.Common as CJ.Common
25
- import Data.Codec.JSON.Strict as CJS
26
25
import Data.Map (Map )
27
26
import Data.Maybe (Maybe )
28
27
import Data.Newtype (class Newtype )
@@ -72,14 +71,14 @@ instance Ord Manifest where
72
71
-- | JSON object. The implementation uses explicitly ordered keys instead of
73
72
-- | record sugar.
74
73
codec :: CJ.Codec Manifest
75
- codec = Profunctor .wrapIso Manifest $ CJ .named " Manifest" $ CJS .objectStrict
76
- $ CJS .recordProp @" name" PackageName .codec
77
- $ CJS .recordProp @" version" Version .codec
78
- $ CJS .recordProp @" license" License .codec
79
- $ CJS .recordPropOptional @" description" (Internal.Codec .limitedString 300 )
80
- $ CJS .recordProp @" location" Location .codec
81
- $ CJS .recordPropOptional @" owners" (CJ.Common .nonEmptyArray Owner .codec)
82
- $ CJS .recordPropOptional @" includeFiles" (CJ.Common .nonEmptyArray CJ.Common .nonEmptyString)
83
- $ CJS .recordPropOptional @" excludeFiles" (CJ.Common .nonEmptyArray CJ.Common .nonEmptyString)
84
- $ CJS .recordProp @" dependencies" (Internal.Codec .packageMap Range .codec)
85
- $ CJS .record
74
+ codec = Profunctor .wrapIso Manifest $ CJ .named " Manifest" $ CJ .object
75
+ $ CJ .recordProp @" name" PackageName .codec
76
+ $ CJ .recordProp @" version" Version .codec
77
+ $ CJ .recordProp @" license" License .codec
78
+ $ CJ .recordPropOptional @" description" (Internal.Codec .limitedString 300 )
79
+ $ CJ .recordProp @" location" Location .codec
80
+ $ CJ .recordPropOptional @" owners" (CJ.Common .nonEmptyArray Owner .codec)
81
+ $ CJ .recordPropOptional @" includeFiles" (CJ.Common .nonEmptyArray CJ.Common .nonEmptyString)
82
+ $ CJ .recordPropOptional @" excludeFiles" (CJ.Common .nonEmptyArray CJ.Common .nonEmptyString)
83
+ $ CJ .recordProp @" dependencies" (Internal.Codec .packageMap Range .codec)
84
+ $ CJ .record
0 commit comments