aeson 0.4
This commit is contained in:
parent
9a195e5087
commit
a990b9cac6
@ -34,7 +34,11 @@ import Data.Text.Encoding (decodeUtf8With)
|
|||||||
import Data.Text.Encoding.Error (lenientDecode)
|
import Data.Text.Encoding.Error (lenientDecode)
|
||||||
import Data.Text (Text)
|
import Data.Text (Text)
|
||||||
import qualified Data.Text as T
|
import qualified Data.Text as T
|
||||||
|
#if MIN_VERSION_aeson(0, 4, 0)
|
||||||
|
import qualified Data.HashMap.Lazy as Map
|
||||||
|
#else
|
||||||
import qualified Data.Map as Map
|
import qualified Data.Map as Map
|
||||||
|
#endif
|
||||||
|
|
||||||
import Language.Haskell.TH.Syntax hiding (lift)
|
import Language.Haskell.TH.Syntax hiding (lift)
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-auth
|
name: yesod-auth
|
||||||
version: 0.7.6.1
|
version: 0.7.6.2
|
||||||
license: BSD3
|
license: BSD3
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman, Patrick Brisbin
|
author: Michael Snoyman, Patrick Brisbin
|
||||||
@ -36,7 +36,8 @@ library
|
|||||||
, hamlet >= 0.10 && < 0.11
|
, hamlet >= 0.10 && < 0.11
|
||||||
, shakespeare-css >= 0.10 && < 0.11
|
, shakespeare-css >= 0.10 && < 0.11
|
||||||
, yesod-json >= 0.2 && < 0.3
|
, yesod-json >= 0.2 && < 0.3
|
||||||
, containers >= 0.2 && < 0.5
|
, containers
|
||||||
|
, unordered-containers
|
||||||
, yesod-form >= 0.3 && < 0.4
|
, yesod-form >= 0.3 && < 0.4
|
||||||
, transformers >= 0.2.2 && < 0.3
|
, transformers >= 0.2.2 && < 0.3
|
||||||
, persistent >= 0.6 && < 0.7
|
, persistent >= 0.6 && < 0.7
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
{-# LANGUAGE TypeSynonymInstances #-}
|
{-# LANGUAGE TypeSynonymInstances #-}
|
||||||
|
{-# LANGUAGE CPP #-}
|
||||||
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||||
module Yesod.Json
|
module Yesod.Json
|
||||||
( -- * Convert from a JSON value
|
( -- * Convert from a JSON value
|
||||||
@ -23,7 +24,11 @@ import qualified Data.Aeson.Encode as JE
|
|||||||
import Data.Aeson.Encode (fromValue)
|
import Data.Aeson.Encode (fromValue)
|
||||||
import Data.Text (pack)
|
import Data.Text (pack)
|
||||||
import Control.Arrow (first)
|
import Control.Arrow (first)
|
||||||
|
#if MIN_VERSION_aeson(0, 4, 0)
|
||||||
|
import Data.HashMap.Strict (fromList)
|
||||||
|
#else
|
||||||
import Data.Map (fromList)
|
import Data.Map (fromList)
|
||||||
|
#endif
|
||||||
import qualified Data.Vector as V
|
import qualified Data.Vector as V
|
||||||
import Text.Julius (ToJavascript (..))
|
import Text.Julius (ToJavascript (..))
|
||||||
import Data.Text.Lazy.Builder (fromLazyText)
|
import Data.Text.Lazy.Builder (fromLazyText)
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-json
|
name: yesod-json
|
||||||
version: 0.2.2
|
version: 0.2.2.1
|
||||||
license: BSD3
|
license: BSD3
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Michael Snoyman <michael@snoyman.com>
|
author: Michael Snoyman <michael@snoyman.com>
|
||||||
@ -20,6 +20,7 @@ library
|
|||||||
, shakespeare-js >= 0.10 && < 0.11
|
, shakespeare-js >= 0.10 && < 0.11
|
||||||
, vector >= 0.9
|
, vector >= 0.9
|
||||||
, containers >= 0.2 && < 0.5
|
, containers >= 0.2 && < 0.5
|
||||||
|
, unordered-containers
|
||||||
exposed-modules: Yesod.Json
|
exposed-modules: Yesod.Json
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user