forked from bortzmeyer/GaBuZoMeu
Future equality function
This commit is contained in:
parent
fa372d98e4
commit
8a342ecf20
10
Types.hs
10
Types.hs
@ -15,7 +15,9 @@ type Extensions = [Extension]
|
|||||||
type Grandfathered = String
|
type Grandfathered = String
|
||||||
type Privateuse = [String]
|
type Privateuse = [String]
|
||||||
|
|
||||||
data Tag = Tag Language Extlang Script Region Variants Extensions | GF Grandfathered | Priv Privateuse deriving (Show, Eq)
|
data Tag = Tag Language Extlang Script Region Variants Extensions | GF Grandfathered | Priv Privateuse deriving (Show)
|
||||||
-- TODO: warning, Eq must
|
-- Warning, Eq must be redefined because it needs to take into account
|
||||||
-- be redefined because it needs to take into account case-insensitivity and
|
-- case-insensitivity and (maybe) canonicalization (see issue #10).
|
||||||
-- (maybe) canonicalization
|
-- Complicated because Tag is not a string. Sopmething like:
|
||||||
|
-- instance Eq Tag where
|
||||||
|
-- a == b = (Language a) == (Language b) ...
|
||||||
|
Loading…
Reference in New Issue
Block a user