Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove trailing whitespace

  • Loading branch information...
commit 6ccfd33015b47ff5c2d883b7f47405da2658bc2b 1 parent 79fdcef
@tibbe authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 README.md
  2. +2 −2 examples/NamedBasedDecode.hs
View
4 README.md
@@ -49,11 +49,11 @@ import qualified Data.ByteString.Lazy as BL
import Data.Csv
import qualified Data.Vector as V
-data Person = Person
+data Person = Person
{ name :: String
, salary :: Int
}
-
+
instance FromNamedRecord Person where
parseNamedRecord r = Person <$> r .: "name" <*> r .: "salary"
View
4 examples/NamedBasedDecode.hs
@@ -5,11 +5,11 @@ import qualified Data.ByteString.Lazy as BL
import Data.Csv
import qualified Data.Vector as V
-data Person = Person
+data Person = Person
{ name :: String
, salary :: Int
}
-
+
instance FromNamedRecord Person where
parseNamedRecord r = Person <$> r .: "name" <*> r .: "salary"
Please sign in to comment.
Something went wrong with that request. Please try again.