-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #251 from ds-wizard/release/4.14.0
Release 4.14.0
- Loading branch information
Showing
98 changed files
with
1,077 additions
and
148 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
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,46 @@ | ||
{-# LANGUAGE StandaloneDeriving #-} | ||
|
||
module WizardLib.Common.Util.Hashable where | ||
|
||
import Data.Hashable | ||
import Data.Time | ||
import GHC.Generics | ||
|
||
import Shared.Common.Model.Common.MapEntry | ||
import WizardLib.KnowledgeModel.Model.Event.EventField | ||
import WizardLib.KnowledgeModel.Model.KnowledgeModel.KnowledgeModel | ||
|
||
deriving instance Generic Day | ||
|
||
instance Hashable Day | ||
|
||
deriving instance Generic LocalTime | ||
|
||
instance Hashable LocalTime | ||
|
||
deriving instance Generic TimeOfDay | ||
|
||
instance Hashable TimeOfDay | ||
|
||
deriving instance Generic TimeZone | ||
|
||
instance Hashable TimeZone | ||
|
||
instance Hashable DiffTime where | ||
hashWithSalt s = (hashWithSalt s :: Double -> Int) . realToFrac | ||
|
||
deriving instance Generic UTCTime | ||
|
||
instance Hashable UTCTime | ||
|
||
deriving instance Eq ZonedTime | ||
|
||
deriving instance Generic ZonedTime | ||
|
||
instance Hashable ZonedTime | ||
|
||
instance Hashable MetricMeasure | ||
instance Hashable QuestionValidation | ||
instance Hashable QuestionValueType | ||
instance Hashable a => Hashable (EventField a) | ||
instance (Hashable key, Hashable value) => Hashable (MapEntry key value) |
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
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
Oops, something went wrong.