make CPP condition depend on HOST OS (#321)

This commit is contained in:
Evgeny Poberezkin
2022-02-18 08:12:08 +00:00
committed by GitHub
parent c1f5f9d846
commit dff5cad1be
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ enumJSON tagModifier =
}
sumTypeJSON :: (String -> String) -> J.Options
#if defined(IOS)
#if defined(darwin_HOST_OS)
sumTypeJSON = singleFieldJSON
#else
sumTypeJSON = taggedObjectJSON