Skip to content
This repository
Browse code

Improve docs

  • Loading branch information...
commit 794b6712e3fd717e57002886bd8858e11a019f27 1 parent ebd1bd4
Johan Tibell authored January 05, 2013
6  Data/Csv.hs
@@ -144,10 +144,10 @@ import Data.Csv.Types
144 144
 -- >     Right v  -> forM_ v $ \ (Hex val1, Hex val2) ->
145 145
 -- >         print (val1, val2)
146 146
 --
147  
--- In order to ignore column you can use unit type '()'. It always
148  
--- successfully decode. Note that it lacks corresponding 'ToField'
  147
+-- In order to ignore a column you can use unit type @()@. It always
  148
+-- successfully decodes. Note that it lacks a corresponding 'ToField'
149 149
 -- instance. It serves as placeholder to indicate that there's
150  
--- something in the column you don't care what.
  150
+-- something in the column you don't care about.
151 151
 --
152 152
 -- > case decode False "foo,1\r\nbar,22" of
153 153
 -- >     Left  err -> putStrLn err
2  Data/Csv/Conversion.hs
@@ -386,7 +386,7 @@ instance ToField a => ToField (Maybe a) where
386 386
     toField = maybe B.empty toField
387 387
     {-# INLINE toField #-}
388 388
 
389  
--- | Could used to ignore column during decoding.
  389
+-- | Ignores the 'Field'. Always succeeds.
390 390
 instance FromField () where
391 391
     parseField _ = pure ()
392 392
     {-# INLINE parseField #-}

0 notes on commit 794b671

Please sign in to comment.
Something went wrong with that request. Please try again.