aeson 0.4

This commit is contained in:
Michael Snoyman 2011-12-01 12:49:28 +02:00
parent 9a195e5087
commit a990b9cac6
4 changed files with 14 additions and 3 deletions

View File

@ -34,7 +34,11 @@ import Data.Text.Encoding (decodeUtf8With)
import Data.Text.Encoding.Error (lenientDecode)
import Data.Text (Text)
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
#endif
import Language.Haskell.TH.Syntax hiding (lift)

View File

@ -1,5 +1,5 @@
name: yesod-auth
version: 0.7.6.1
version: 0.7.6.2
license: BSD3
license-file: LICENSE
author: Michael Snoyman, Patrick Brisbin
@ -36,7 +36,8 @@ library
, hamlet >= 0.10 && < 0.11
, shakespeare-css >= 0.10 && < 0.11
, yesod-json >= 0.2 && < 0.3
, containers >= 0.2 && < 0.5
, containers
, unordered-containers
, yesod-form >= 0.3 && < 0.4
, transformers >= 0.2.2 && < 0.3
, persistent >= 0.6 && < 0.7

View File

@ -1,4 +1,5 @@
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Yesod.Json
( -- * Convert from a JSON value
@ -23,7 +24,11 @@ import qualified Data.Aeson.Encode as JE
import Data.Aeson.Encode (fromValue)
import Data.Text (pack)
import Control.Arrow (first)
#if MIN_VERSION_aeson(0, 4, 0)
import Data.HashMap.Strict (fromList)
#else
import Data.Map (fromList)
#endif
import qualified Data.Vector as V
import Text.Julius (ToJavascript (..))
import Data.Text.Lazy.Builder (fromLazyText)

View File

@ -1,5 +1,5 @@
name: yesod-json
version: 0.2.2
version: 0.2.2.1
license: BSD3
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>
@ -20,6 +20,7 @@ library
, shakespeare-js >= 0.10 && < 0.11
, vector >= 0.9
, containers >= 0.2 && < 0.5
, unordered-containers
exposed-modules: Yesod.Json
ghc-options: -Wall