git.iko.soy/typeable/bloodhound
on master help sign in
warnings, old-locale
commit5c24e8c4109240b19425feb89142d7e40fc0e8d2 authorChris Allen <cma@bitemyapp.com> dateMon 19 Oct 2015, 11:30 (11 years ago) parentc518b8e
2 files changed+7−3
stack-7.8.yaml+3−1 tests/tests.hs+4−2
stack-7.8.yaml+3−1
@@ -1,4 +1,6 @@
1−flags: {}
1+flags:
2+ aeson:
3+ old-locale: true
24packages:
35- '.'
46extra-deps:
tests/tests.hs+4−2
@@ -257,8 +257,10 @@ searchExpectSource src expected = do
257257 value `shouldBe` expected
258258
259259data BulkTest = BulkTest { name :: Text } deriving (Eq, Generic, Show)
260−instance FromJSON BulkTest
261−instance ToJSON BulkTest
260+instance FromJSON BulkTest where
261+ parseJSON = genericParseJSON defaultOptions
262+instance ToJSON BulkTest where
263+ toJSON = genericToJSON defaultOptions
262264
263265noDuplicates :: Eq a => [a] -> Bool
264266noDuplicates xs = nub xs == xs