Skip to content

Commit e2718db

Browse files
committed
friendlier to nullable json object
1 parent 69a6992 commit e2718db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Distribution/ArchLinux/AUR/Types.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ data AURInfo = AURInfo {
8787
, packageMaintainer :: Maybe Text
8888
, packageFirstSubmitted :: Int
8989
, packageLastModified :: Int
90-
, packageURLPath :: Text
90+
, packageURLPath :: Maybe Text
9191
, packageDepends :: [Text]
9292
, packageMakeDepends :: [Text]
9393
, packageOptDepends :: [Text]
@@ -111,7 +111,7 @@ instance FromJSON AURInfo where
111111
<*> v .:? "Maintainer"
112112
<*> v .: "FirstSubmitted"
113113
<*> v .: "LastModified"
114-
<*> v .: "URLPath"
114+
<*> v .:? "URLPath"
115115
<*> v .:! "Depends" .!= []
116116
<*> v .:! "MakeDepends" .!= []
117117
<*> v .:! "OptDepends" .!= []

0 commit comments

Comments
 (0)