-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into shell_subst
- Loading branch information
Showing
98 changed files
with
4,068 additions
and
310 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
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,30 @@ | ||
{-# LANGUAGE StandaloneDeriving, DeriveGeneric, FlexibleInstances, UndecidableInstances #-} | ||
module Common.Json.ConvInstances where | ||
|
||
import Data.Aeson | ||
import GHC.Generics | ||
import Common.Lib.SizedList as SizedList | ||
import Common.Json.Instances() | ||
import qualified Common.Lib.Rel as Rel | ||
import qualified Common.Lib.MapSet as MapSet | ||
import qualified Common.InjMap as InjMap | ||
import qualified Data.Relation as DRel | ||
import qualified Data.Relation.Internal as DRelInt | ||
import System.Time | ||
|
||
deriving instance Generic ClockTime | ||
deriving instance (Generic a, Generic b) => Generic (DRelInt.Relation a b) | ||
|
||
instance ToJSON a => ToJSON (SizedList.SizedList a) | ||
instance (Ord a, ToJSON a, Ord b, ToJSON b, ToJSONKey a, ToJSONKey b) => ToJSON (InjMap.InjMap a b) where | ||
instance (Ord a, ToJSON a, Ord b, ToJSON b, ToJSONKey a) => ToJSON (MapSet.MapSet a b) where | ||
instance (Ord a, ToJSON a, ToJSONKey a) => ToJSON (Rel.Rel a) where | ||
instance (Ord a, Ord b, Generic a, Generic b, ToJSON a, ToJSON b, ToJSONKey a, ToJSONKey b) => ToJSON (DRel.Relation a b) where | ||
instance ToJSON ClockTime where | ||
|
||
instance FromJSON a => FromJSON (SizedList.SizedList a) | ||
instance (Ord a, FromJSON a, Ord b, FromJSON b, FromJSONKey a, FromJSONKey b) => FromJSON (InjMap.InjMap a b) where | ||
instance (Ord a, FromJSON a, Ord b, FromJSON b, FromJSONKey a) => FromJSON (MapSet.MapSet a b) where | ||
instance (Ord a, FromJSON a, FromJSONKey a) => FromJSON (Rel.Rel a) where | ||
instance (Ord a, Ord b, Generic a, Generic b, FromJSON a, FromJSON b, FromJSONKey a, FromJSONKey b) => FromJSON (DRel.Relation a b) where | ||
instance FromJSON ClockTime where |
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,11 @@ | ||
{-# LANGUAGE StandaloneDeriving, DeriveGeneric, FlexibleInstances, UndecidableInstances #-} | ||
module Common.Json.Instances () where | ||
|
||
import GHC.Generics | ||
import Data.Aeson | ||
|
||
instance {-# OVERLAPS #-} (Generic a, GToJSON Zero (Rep a)) => ToJSON a where | ||
instance {-# OVERLAPS #-} (Generic a, GFromJSON Zero (Rep a)) => FromJSON a where | ||
|
||
instance {-# OVERLAPS #-} (Generic a, ToJSON a) => ToJSONKey a where | ||
instance {-# OVERLAPS #-} (Generic a, FromJSON a) => FromJSONKey a where |
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.