Commit 7f209ce7 authored by Alexandre Delanoë's avatar Alexandre Delanoë

cosmetics

parent ac1bec26
...@@ -15,20 +15,19 @@ import Text.Read (readMaybe) ...@@ -15,20 +15,19 @@ import Text.Read (readMaybe)
import Servant.API (ToHttpApiData(..)) import Servant.API (ToHttpApiData(..))
data Corpus = Corpus data Corpus = Corpus
{ { _corpus_docid :: Text
_corpus_docid :: Text, , _corpus_title :: [Text]
_corpus_title :: [Text], , _corpus_abstract :: [Text]
_corpus_abstract :: [Text], , _corpus_date :: Maybe Text
_corpus_date :: Maybe Text, , _corpus_source :: Maybe Text
_corpus_source :: Maybe Text, , _corpus_authors_names :: [Text]
_corpus_authors_names :: [Text], , _corpus_authors_affiliations :: [Text]
_corpus_authors_affiliations :: [Text], , _corpus_struct_id :: [Int]
_corpus_struct_id :: [Int]
} deriving (Show, Generic) } deriving (Show, Generic)
L.makeLenses ''Corpus L.makeLenses ''Corpus
instance Default Corpus where 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 instance FromJSON Corpus where
parseJSON (Object o) = parseJSON (Object o) =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment