Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Przemyslaw Kaminski
hal
Commits
7f209ce7
Commit
7f209ce7
authored
Apr 17, 2023
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics
parent
ac1bec26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
Corpus.hs
src/HAL/Doc/Corpus.hs
+9
-10
No files found.
src/HAL/Doc/Corpus.hs
View file @
7f209ce7
...
...
@@ -15,20 +15,19 @@ import Text.Read (readMaybe)
import
Servant.API
(
ToHttpApiData
(
..
))
data
Corpus
=
Corpus
{
_corpus_docid
::
Text
,
_corpus_title
::
[
Text
],
_corpus_abstract
::
[
Text
],
_corpus_date
::
Maybe
Text
,
_corpus_source
::
Maybe
Text
,
_corpus_authors_names
::
[
Text
],
_corpus_authors_affiliations
::
[
Text
],
_corpus_struct_id
::
[
Int
]
{
_corpus_docid
::
Text
,
_corpus_title
::
[
Text
]
,
_corpus_abstract
::
[
Text
]
,
_corpus_date
::
Maybe
Text
,
_corpus_source
::
Maybe
Text
,
_corpus_authors_names
::
[
Text
]
,
_corpus_authors_affiliations
::
[
Text
]
,
_corpus_struct_id
::
[
Int
]
}
deriving
(
Show
,
Generic
)
L
.
makeLenses
''
C
orpus
instance
Default
Corpus
where
def
=
Corpus
""
def
def
def
def
def
def
def
def
=
Corpus
"
default Id
"
def
def
def
def
def
def
def
instance
FromJSON
Corpus
where
parseJSON
(
Object
o
)
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment