git.iko.soy/typeable/servant
on master help sign in
Merge pull request #140 from oswynb/fix-aeson-test

Fix ordering of CPP directive for aeson test

commitd27c7c0c6f277783e35ab6e150a66bb8ea2020d2 authorJulian Arni <jkarni@gmail.com> dateTue 23 Jun 2015, 16:51 (11 years ago) parent7399f308eb592b
1 file changed+2−2
servant/test/Servant/API/ContentTypesSpec.hs+2−2
servant/test/Servant/API/ContentTypesSpec.hs+2−2
@@ -160,10 +160,10 @@ spec = describe "Servant.API.ContentTypes" $ do
160160 (encode val)
161161 `shouldBe` Just (Right val)
162162
163+#if MIN_VERSION_aeson(0,9,0)
164+ -- aeson >= 0.9 decodes top-level strings
163165 describe "eitherDecodeLenient" $ do
164166
165− -- aeson >= 0.9 decodes top-level strings
166−#if MIN_VERSION_aeson(0,9,0)
167167 it "parses top-level strings" $ do
168168 let toMaybe = either (const Nothing) Just
169169 -- The Left messages differ, so convert to Maybe