Skip to content
Open
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
1 change: 1 addition & 0 deletions src/Data/Text/Conversions.hs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ hush :: Either a b -> Maybe b
hush (Left _) = Nothing
hush (Right x) = Just x

instance ToText Char where toText = T.singleton
instance ToText T.Text where toText = id
instance FromText T.Text where fromText = id
instance ToText String where toText = T.pack
Expand Down