Commit f70d635d authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] adding some examples for mock.

parent 1e72c415
...@@ -76,10 +76,18 @@ data HyperdataDocument = HyperdataDocument { hyperdataDocument_bdd ...@@ -76,10 +76,18 @@ data HyperdataDocument = HyperdataDocument { hyperdataDocument_bdd
} deriving (Show, Generic) } deriving (Show, Generic)
$(deriveJSON (unPrefix "hyperdataDocument_") ''HyperdataDocument) $(deriveJSON (unPrefix "hyperdataDocument_") ''HyperdataDocument)
hyperdataDocuments :: [HyperdataDocument] toHyperdataDocuments :: [(Text, Text)] -> [HyperdataDocument]
hyperdataDocuments = [HyperdataDocument Nothing Nothing Nothing Nothing (Just "AI is big but less than crypto") toHyperdataDocuments ts = map (\(t1,t2) -> HyperdataDocument Nothing Nothing Nothing Nothing (Just t1)
Nothing (Just "Troll System journal") Nothing Nothing Nothing Nothing (Just t2) Nothing Nothing Nothing
Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing Nothing
) ts
hyperdataDocuments :: [HyperdataDocument]
hyperdataDocuments = toHyperdataDocuments [ ("AI is big but less than crypto", "Troll System journal")
, ("Crypto is big but less than AI", "System Troll review" )
, ("Science is magic" , "Closed Source review")
, ("Open science for all" , "No Time" )
, ("Closed science for me" , "No Space" )
] ]
......
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