Skip to content

Commit

Permalink
Minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsmith committed Jun 13, 2011
1 parent 475a2bc commit a233dc2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Data/Json/Builder.hs
Expand Up @@ -62,8 +62,6 @@ import Data.Monoid ( Monoid (mempty, mappend, mconcat) )
import Data.Int ( Int8, Int16, Int32, Int64) import Data.Int ( Int8, Int16, Int32, Int64)
import Data.Word ( Word, Word8, Word16, Word32, Word64 ) import Data.Word ( Word, Word8, Word16, Word32, Word64 )


import qualified Data.Char as Char

import qualified Data.ByteString as BS import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy as BL import qualified Data.ByteString.Lazy as BL
import qualified Data.ByteString.UTF8 as BU import qualified Data.ByteString.UTF8 as BU
Expand Down Expand Up @@ -251,7 +249,7 @@ instance (JsString k, Value a) => JsObject (HashMap.HashMap k a) where
------------------------------------------------------------------------------ ------------------------------------------------------------------------------


quoteNeeded :: Char -> Bool quoteNeeded :: Char -> Bool
quoteNeeded c = c == '\\' || c == '"' || Char.ord c < 0x20 quoteNeeded c = c == '\\' || c == '"' || c < '\x20'
{-# INLINE quoteNeeded #-} {-# INLINE quoteNeeded #-}


quoteChar :: Char -> Builder quoteChar :: Char -> Builder
Expand Down

0 comments on commit a233dc2

Please sign in to comment.