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
410a2006
Commit
410a2006
authored
1 year ago
by
Alice Brenon
Browse files
Options
Downloads
Patches
Plain Diff
Remove deprecated imports and dead code
parent
fdc75cc4
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/ArticleRecord.hs
+2
-10
2 additions, 10 deletions
lib/GEODE/Metadata/ArticleRecord.hs
with
2 additions
and
10 deletions
lib/GEODE/Metadata/ArticleRecord.hs
+
2
−
10
View file @
410a2006
...
@@ -7,9 +7,9 @@ module GEODE.Metadata.ArticleRecord
...
@@ -7,9 +7,9 @@ module GEODE.Metadata.ArticleRecord
import
Data.Aeson
((
.=
),
FromJSON
(
..
),
ToJSON
(
..
))
import
Data.Aeson
((
.=
),
FromJSON
(
..
),
ToJSON
(
..
))
import
Data.Aeson.KeyMap
as
KeyMap
(
fromList
)
import
Data.Aeson.KeyMap
as
KeyMap
(
fromList
)
import
Data.Csv
(
FromField
(
..
),
FromNamedRecord
(
..
),
ToNamedRecord
(
..
)
,
ToField
(
..
)
)
import
Data.Csv
(
FromNamedRecord
(
..
),
ToNamedRecord
(
..
))
import
GEODE.Metadata.Record
(
Record
(
..
))
import
GEODE.Metadata.Record
(
Record
(
..
))
import
GEODE.Metadata.Types
(
Has
(
..
),
ToJSONObject
(
..
))
import
GEODE.Metadata.Types
(
ToJSONObject
(
..
))
import
GEODE.Metadata.TSV.Header
(
DefaultFields
(
..
),
HasDefaultHeader
(
..
))
import
GEODE.Metadata.TSV.Header
(
DefaultFields
(
..
),
HasDefaultHeader
(
..
))
import
GEODE.Metadata.Work
(
Work
(
..
))
import
GEODE.Metadata.Work
(
Work
(
..
))
import
GHC.Generics
(
Generic
)
import
GHC.Generics
(
Generic
)
...
@@ -43,13 +43,5 @@ instance Record ArticleRecord where
...
@@ -43,13 +43,5 @@ instance Record ArticleRecord where
relativePath
(
ArticleRecord
{
work
,
volume
,
article
})
extension
=
relativePath
(
ArticleRecord
{
work
,
volume
,
article
})
extension
=
(
show
work
)
</>
(
"T"
<>
show
volume
)
</>
(
show
article
)
<.>
extension
(
show
work
)
</>
(
"T"
<>
show
volume
)
</>
(
show
article
)
<.>
extension
{-
relativePath :: Has ArticleRecord a => a -> String -> FilePath
relativePath a extension =
(show work) </> ("T" <> show volume) </> (show article) <.> extension
where
ArticleRecord {work, volume, article} = get a
-}
instance
HasDefaultHeader
ArticleRecord
where
instance
HasDefaultHeader
ArticleRecord
where
defaultFields
=
DefaultFields
[
"work"
,
"volume"
,
"article"
]
defaultFields
=
DefaultFields
[
"work"
,
"volume"
,
"article"
]
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