Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Feb 17, 2025
1 parent 217fef7 commit 5708861
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Nostr/Profile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ data Nip05Response = Nip05Response

-- | 'ToJSON' instance for 'Profile'.
instance ToJSON Profile where
toEncoding (Profile name displayName about picture nip05 banner) = pairs $
"name" .= name <>
"display_name" .= displayName <>
"about" .= about <>
"picture" .= picture <>
"nip05" .= nip05 <>
"banner" .= banner
toEncoding (Profile n dn abt pic nip bnr) = pairs $
"name" .= n <>
"display_name" .= dn <>
"about" .= abt <>
"picture" .= pic <>
"nip05" .= nip <>
"banner" .= bnr


-- | 'FromJSON' instance for 'Profile'.
Expand Down

0 comments on commit 5708861

Please sign in to comment.