Skip to content
Snippets Groups Projects
Commit 85e5cb7a authored by Alice Brenon's avatar Alice Brenon
Browse files

Explain the ':'-embedded convention for fields with several values

parent 3a2b7ff4
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,10 @@ import GHC.Generics (Generic) ...@@ -13,6 +13,10 @@ import GHC.Generics (Generic)
newtype MultiText = MultiText newtype MultiText = MultiText
{ getList :: [Text] } deriving (Show) { getList :: [Text] } deriving (Show)
-- | We represent fields with multiple values by ':'-surrounded values
-- (including a leading and trailing ':') to be able to always write the same
-- regex to match for their value (/.*:Géographie:.*/, no matter if it occurs at
-- the begining, the end or in the middle of the field
formatList :: MultiText -> Text formatList :: MultiText -> Text
formatList = colonFormat . getList formatList = colonFormat . getList
where where
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment