Make "provenance" optional

Related to
gargantext/haskell-gargantext#428
parent a80e0ea5
......@@ -351,14 +351,14 @@ instance Csv.ToNamedRecord Work where
data APCList = APCList
{ value :: Maybe Int
, currency :: Text
, provenance :: Text
, provenance :: Maybe Text
, value_usd :: Maybe Int
} deriving (Generic, Show, FromJSON)
data APCPaid = APCPaid
{ value :: Int
, currency :: Text
, provenance :: Text
, provenance :: Maybe Text
, value_usd :: Maybe Int
} deriving (Generic, Show, FromJSON)
......
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