Simplify.

This commit is contained in:
Kei Hibino 2014-05-13 16:47:44 +09:00
parent 5a77e6d5c6
commit 16dbf2403d

View File

@ -19,12 +19,13 @@ module Language.SQL.Keyword.Type (
stringMap
) where
import Data.Monoid (mconcat)
import Language.SQL.Keyword.Internal.Type (Keyword (..), word, wordShow)
-- | Concatinate keywords into 'String' like unwords
unwordsSQL :: [Keyword] -> String
unwordsSQL = unwords . map wordShow
unwordsSQL = wordShow . mconcat
-- | Make SQL string expression. No escape logic, so this is unsafe function.
unsafeString :: String -> Keyword