Skip to content

Commit

Permalink
Point free rewrittings
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelBoucey committed Jan 31, 2024
1 parent 856b1a5 commit dcae0a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Data/NanoID.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ newtype Alphabet =
type Length = Natural

instance Show NanoID where
show n = C.unpack (unNanoID n)
show = C.unpack . unNanoID

instance Show Alphabet where
show a = C.unpack (unAlphabet a)
show = C.unpack . unAlphabet

instance ToJSON NanoID where
toJSON n = String (decodeUtf8 $ unNanoID n)
Expand Down

0 comments on commit dcae0a0

Please sign in to comment.