Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added data instance to Value #169

Merged
merged 1 commit into from

2 participants

@maxpow4h

This was added so I could use Object inside of data structures that need to be instances of Data.Data.Data.

Thank you!

@maxpow4h maxpow4h referenced this pull request in jwiegley/github
Closed

Added global event API #50

@bos bos merged commit 38ebb57 into from
@bos
Owner
bos commented

Applied, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 1, 2013
  1. @maxpow4h

    Added data instance to Value

    maxpow4h authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  Data/Aeson/Types/Internal.hs
View
3  Data/Aeson/Types/Internal.hs
@@ -45,6 +45,7 @@ import Control.Monad
import Control.DeepSeq (NFData(..))
import Data.Scientific (Scientific)
import Data.Hashable (Hashable(..))
+import Data.Data (Data)
import Data.HashMap.Strict (HashMap)
import Data.Monoid (Monoid(..))
import Data.String (IsString(..))
@@ -174,7 +175,7 @@ data Value = Object !Object
| Number !Scientific
| Bool !Bool
| Null
- deriving (Eq, Show, Typeable)
+ deriving (Eq, Show, Typeable, Data)
-- | A newtype wrapper for 'UTCTime' that uses the same non-standard
-- serialization format as Microsoft .NET, whose @System.DateTime@
Something went wrong with that request. Please try again.