warnings, old-locale

This commit is contained in:
Chris Allen 2015-10-19 11:30:54 -05:00
parent c518b8ed7f
commit 5c24e8c410
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,6 @@
flags: {}
flags:
aeson:
old-locale: true
packages:
- '.'
extra-deps:

View File

@ -257,8 +257,10 @@ searchExpectSource src expected = do
value `shouldBe` expected
data BulkTest = BulkTest { name :: Text } deriving (Eq, Generic, Show)
instance FromJSON BulkTest
instance ToJSON BulkTest
instance FromJSON BulkTest where
parseJSON = genericParseJSON defaultOptions
instance ToJSON BulkTest where
toJSON = genericToJSON defaultOptions
noDuplicates :: Eq a => [a] -> Bool
noDuplicates xs = nub xs == xs