Skip to content

Commit

Permalink
Derive Generic Value
Browse files Browse the repository at this point in the history
  • Loading branch information
Lysxia committed May 6, 2017
1 parent d5f41b6 commit dd909cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Data/Aeson/Types/Internal.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE Rank2Types #-}
#if __GLASGOW_HASKELL__ >= 800
Expand Down Expand Up @@ -92,6 +93,7 @@ import Data.Time (UTCTime)
import Data.Time.Format (FormatTime)
import Data.Typeable (Typeable)
import Data.Vector (Vector)
import GHC.Generics (Generic)
import qualified Control.Monad.Fail as Fail
import qualified Data.HashMap.Strict as H
import qualified Data.Scientific as S
Expand Down Expand Up @@ -342,7 +344,7 @@ data Value = Object !Object
| Number !Scientific
| Bool !Bool
| Null
deriving (Eq, Read, Show, Typeable, Data)
deriving (Eq, Read, Show, Typeable, Data, Generic)

-- | A newtype wrapper for 'UTCTime' that uses the same non-standard
-- serialization format as Microsoft .NET, whose
Expand Down

0 comments on commit dd909cc

Please sign in to comment.