Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Fix the type of signatures in metadata #17

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/Distribution/Hackage/DB/MetaData.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ parseMetaData :: ByteString -> MetaData
parseMetaData = either (throw . InvalidMetaFile) id . eitherDecode

data MetaData = MetaData { signed :: SignedMetaData
, signatures :: [String]
, signatures :: [Signature]
}
deriving (Show, Generic)

Expand All @@ -56,3 +56,10 @@ data TargetData = TargetData { length :: Int
deriving (Show, Generic)

instance FromJSON TargetData

data Signature = Signature { keyid :: String
, method :: String
, sig :: String }
deriving (Show, Generic)

instance FromJSON Signature