Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IncoherentInstances needed to derive some instances
* Add IncoherentInstances to Data.Aeson.TH and Data.Aeson.FromJSON * Add data type with test that demonstrates the need for IncoherentInstances in TH and Generic deriving (specifically for the classes LookupField and FromRecord) * Fix #468
- Loading branch information
Showing
6 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#if __GLASGOW_HASKELL__ >= 710 | ||
#define INCOHERENT_ {-# INCOHERENT #-} | ||
#else | ||
-- This causes some type class instances to break: | ||
-- {-# LANGUAGE IncoherentInstances #-} | ||
#define INCOHERENT_ | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters