Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Documentation tweaks

  • Loading branch information...
commit c2e0c41d3b5291a09c6a54f466b7715cf1385bad 1 parent 617f1de
@tibbe authored
Showing with 7 additions and 11 deletions.
  1. +1 −1  Data/Csv.hs
  2. +3 −5 Data/Csv/Encoding.hs
  3. +3 −5 Data/Csv/Parser.hs
View
2  Data/Csv.hs
@@ -187,7 +187,7 @@ import Data.Csv.Types
-- $fieldconversion
--
--- The 'FromField' and 'ToField' define how to convert between
+-- The 'FromField' and 'ToField' classes define how to convert between
-- 'Field's and values you care about (e.g. 'Int's). Most of the time
-- you don't need to write your own instances as the standard ones
-- cover most use cases.
View
8 Data/Csv/Encoding.hs
@@ -151,11 +151,9 @@ parseNamedCsv xs = V.fromList <$!> mapM' parseNamedRecord (V.toList xs)
-- added to 'EncodeOptions', create option records by overriding
-- values in 'defaultEncodeOptions'. Example:
--
--- @
--- myOptions = defaultEncodeOptions {
--- encDelimiter = fromIntegral (ord '\t')
--- }
--- @
+-- > myOptions = defaultEncodeOptions {
+-- > encDelimiter = fromIntegral (ord '\t')
+-- > }
data EncodeOptions = EncodeOptions
{ -- | Field delimiter.
encDelimiter :: {-# UNPACK #-} !Word8
View
8 Data/Csv/Parser.hs
@@ -50,11 +50,9 @@ import Data.Csv.Util ((<$!>))
-- added to 'DecodeOptions', create option records by overriding
-- values in 'defaultDecodeOptions'. Example:
--
--- @
--- myOptions = defaultDecodeOptions {
--- decDelimiter = fromIntegral (ord '\t')
--- }
--- @
+-- > myOptions = defaultDecodeOptions {
+-- > decDelimiter = fromIntegral (ord '\t')
+-- > }
data DecodeOptions = DecodeOptions
{ -- | Field delimiter.
decDelimiter :: {-# UNPACK #-} !Word8
Please sign in to comment.
Something went wrong with that request. Please try again.