@@ -33,12 +33,14 @@ data SPDXLicenseListVersion
3333 | SPDXLicenseListVersion_3_10
3434 | SPDXLicenseListVersion_3_16
3535 | SPDXLicenseListVersion_3_23
36+ | SPDXLicenseListVersion_3_25
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_25 = " SPDX License List 3.25"
4244prettyVer SPDXLicenseListVersion_3_23 = " SPDX License List 3.23"
4345prettyVer SPDXLicenseListVersion_3_16 = " SPDX License List 3.16"
4446prettyVer SPDXLicenseListVersion_3_10 = " SPDX License List 3.10"
@@ -48,6 +50,7 @@ prettyVer SPDXLicenseListVersion_3_2 = "SPDX License List 3.2"
4850prettyVer SPDXLicenseListVersion_3_0 = " SPDX License List 3.0"
4951
5052suffixVer :: SPDXLicenseListVersion -> String
53+ suffixVer SPDXLicenseListVersion_3_25 = " _3_25"
5154suffixVer SPDXLicenseListVersion_3_23 = " _3_23"
5255suffixVer SPDXLicenseListVersion_3_16 = " _3_16"
5356suffixVer SPDXLicenseListVersion_3_10 = " _3_10"
@@ -60,21 +63,22 @@ suffixVer SPDXLicenseListVersion_3_0 = "_3_0"
6063-- Per version
6164-------------------------------------------------------------------------------
6265
63- data PerV a = PerV a a a a a a a
66+ data PerV a = PerV a a a a a a a a
6467 deriving (Show , Functor , Foldable , Traversable )
6568
6669class Functor f => Representable i f | f -> i where
6770 index :: i -> f a -> a
6871 tabulate :: (i -> a ) -> f a
6972
7073instance Representable SPDXLicenseListVersion PerV where
71- index SPDXLicenseListVersion_3_0 (PerV x _ _ _ _ _ _) = x
72- index SPDXLicenseListVersion_3_2 (PerV _ x _ _ _ _ _) = x
73- index SPDXLicenseListVersion_3_6 (PerV _ _ x _ _ _ _) = x
74- index SPDXLicenseListVersion_3_9 (PerV _ _ _ x _ _ _) = x
75- index SPDXLicenseListVersion_3_10 (PerV _ _ _ _ x _ _) = x
76- index SPDXLicenseListVersion_3_16 (PerV _ _ _ _ _ x _) = x
77- index SPDXLicenseListVersion_3_23 (PerV _ _ _ _ _ _ x) = x
74+ index SPDXLicenseListVersion_3_0 (PerV x _ _ _ _ _ _ _) = x
75+ index SPDXLicenseListVersion_3_2 (PerV _ x _ _ _ _ _ _) = x
76+ index SPDXLicenseListVersion_3_6 (PerV _ _ x _ _ _ _ _) = x
77+ index SPDXLicenseListVersion_3_9 (PerV _ _ _ x _ _ _ _) = x
78+ index SPDXLicenseListVersion_3_10 (PerV _ _ _ _ x _ _ _) = x
79+ index SPDXLicenseListVersion_3_16 (PerV _ _ _ _ _ x _ _) = x
80+ index SPDXLicenseListVersion_3_23 (PerV _ _ _ _ _ _ x _) = x
81+ index SPDXLicenseListVersion_3_25 (PerV _ _ _ _ _ _ _ x) = x
7882
7983 tabulate f = PerV
8084 (f SPDXLicenseListVersion_3_0 )
@@ -84,6 +88,7 @@ instance Representable SPDXLicenseListVersion PerV where
8488 (f SPDXLicenseListVersion_3_10 )
8589 (f SPDXLicenseListVersion_3_16 )
8690 (f SPDXLicenseListVersion_3_23 )
91+ (f SPDXLicenseListVersion_3_25 )
8792
8893-------------------------------------------------------------------------------
8994-- Sorting
@@ -162,6 +167,7 @@ toConstructorName t = t
162167 special :: Text -> Text
163168 special " 0BSD" = " NullBSD"
164169 special " 389_exception" = " DS389_exception"
170+ special " 3D_Slicer_1_0" = " X3D_Slicer_1_0"
165171 special u = u
166172
167173mkList :: [Text ] -> Text
0 commit comments