Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
ghc-geode
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Projet GEODE
ghc-geode
Commits
85e5cb7a
Commit
85e5cb7a
authored
1 year ago
by
Alice Brenon
Browse files
Options
Downloads
Patches
Plain Diff
Explain the ':'-embedded convention for fields with several values
parent
3a2b7ff4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/GEODE/Metadata/Contrastive.hs
+4
-0
4 additions, 0 deletions
lib/GEODE/Metadata/Contrastive.hs
with
4 additions
and
0 deletions
lib/GEODE/Metadata/Contrastive.hs
+
4
−
0
View file @
85e5cb7a
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment