@@ -33,12 +33,14 @@ data SPDXLicenseListVersion
3333 | SPDXLicenseListVersion_3_16
3434 | SPDXLicenseListVersion_3_23
3535 | SPDXLicenseListVersion_3_25
36+ | SPDXLicenseListVersion_3_26
3637 deriving (Eq , Ord , Show , Enum , Bounded )
3738
3839allVers :: Set. Set SPDXLicenseListVersion
3940allVers = Set. fromList [minBound .. maxBound ]
4041
4142prettyVer :: SPDXLicenseListVersion -> Text
43+ prettyVer SPDXLicenseListVersion_3_26 = " SPDX License List 3.26"
4244prettyVer SPDXLicenseListVersion_3_25 = " SPDX License List 3.25"
4345prettyVer SPDXLicenseListVersion_3_23 = " SPDX License List 3.23"
4446prettyVer SPDXLicenseListVersion_3_16 = " SPDX License List 3.16"
@@ -49,6 +51,7 @@ prettyVer SPDXLicenseListVersion_3_2 = "SPDX License List 3.2"
4951prettyVer SPDXLicenseListVersion_3_0 = " SPDX License List 3.0"
5052
5153suffixVer :: SPDXLicenseListVersion -> String
54+ suffixVer SPDXLicenseListVersion_3_26 = " _3_26"
5255suffixVer SPDXLicenseListVersion_3_25 = " _3_25"
5356suffixVer SPDXLicenseListVersion_3_23 = " _3_23"
5457suffixVer SPDXLicenseListVersion_3_16 = " _3_16"
@@ -62,22 +65,23 @@ suffixVer SPDXLicenseListVersion_3_0 = "_3_0"
6265-- Per version
6366-------------------------------------------------------------------------------
6467
65- data PerV a = PerV a a a a a a a a
68+ data PerV a = PerV a a a a a a a a a
6669 deriving (Show , Functor , Foldable , Traversable )
6770
6871class Functor f => Representable i f | f -> i where
6972 index :: i -> f a -> a
7073 tabulate :: (i -> a ) -> f a
7174
7275instance Representable SPDXLicenseListVersion PerV where
73- index SPDXLicenseListVersion_3_0 (PerV x _ _ _ _ _ _ _) = x
74- index SPDXLicenseListVersion_3_2 (PerV _ x _ _ _ _ _ _) = x
75- index SPDXLicenseListVersion_3_6 (PerV _ _ x _ _ _ _ _) = x
76- index SPDXLicenseListVersion_3_9 (PerV _ _ _ x _ _ _ _) = x
77- index SPDXLicenseListVersion_3_10 (PerV _ _ _ _ x _ _ _) = x
78- index SPDXLicenseListVersion_3_16 (PerV _ _ _ _ _ x _ _) = x
79- index SPDXLicenseListVersion_3_23 (PerV _ _ _ _ _ _ x _) = x
80- index SPDXLicenseListVersion_3_25 (PerV _ _ _ _ _ _ _ x) = x
76+ index SPDXLicenseListVersion_3_0 (PerV x _ _ _ _ _ _ _ _) = x
77+ index SPDXLicenseListVersion_3_2 (PerV _ x _ _ _ _ _ _ _) = x
78+ index SPDXLicenseListVersion_3_6 (PerV _ _ x _ _ _ _ _ _) = x
79+ index SPDXLicenseListVersion_3_9 (PerV _ _ _ x _ _ _ _ _) = x
80+ index SPDXLicenseListVersion_3_10 (PerV _ _ _ _ x _ _ _ _) = x
81+ index SPDXLicenseListVersion_3_16 (PerV _ _ _ _ _ x _ _ _) = x
82+ index SPDXLicenseListVersion_3_23 (PerV _ _ _ _ _ _ x _ _) = x
83+ index SPDXLicenseListVersion_3_25 (PerV _ _ _ _ _ _ _ x _) = x
84+ index SPDXLicenseListVersion_3_26 (PerV _ _ _ _ _ _ _ _ x) = x
8185
8286 tabulate f = PerV
8387 (f SPDXLicenseListVersion_3_0 )
@@ -88,6 +92,7 @@ instance Representable SPDXLicenseListVersion PerV where
8892 (f SPDXLicenseListVersion_3_16 )
8993 (f SPDXLicenseListVersion_3_23 )
9094 (f SPDXLicenseListVersion_3_25 )
95+ (f SPDXLicenseListVersion_3_26 )
9196
9297-------------------------------------------------------------------------------
9398-- Sorting
0 commit comments