diff --git a/src/Web/ActivityPub.hs b/src/Web/ActivityPub.hs index 4191871..68a54d9 100644 --- a/src/Web/ActivityPub.hs +++ b/src/Web/ActivityPub.hs @@ -350,7 +350,7 @@ newtype AdaptAudience = AdaptAudience } instance FromJSON AdaptAudience where - parseJSON = parseJSON . adapt + parseJSON = fmap AdaptAudience . parseJSON . adapt where adapt v = case v of