Browse files

Add TODO regarding UTF-8 conversion

  • Loading branch information...
1 parent 2ef35f5 commit 523dfa05530b6ebf9b04c7c2a45372600ef73dcd @tibbe tibbe committed Feb 24, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 Data/Csv/Conversion.hs
View
1 Data/Csv/Conversion.hs
@@ -575,6 +575,7 @@ instance ToField L.ByteString where
toField = toStrict
{-# INLINE toField #-}
+-- TODO: Add comment about failure on invalid UTF-8 data.
-- | Assumes UTF-8 encoding.
instance FromField T.Text where
parseField = either (fail . show) pure . T.decodeUtf8'

0 comments on commit 523dfa0

Please sign in to comment.