mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-11-29 06:37:03 +03:00
Remove unused definitions.
This commit is contained in:
parent
827e72a813
commit
b7c8f97304
@ -12,11 +12,7 @@ module Language.SQL.Keyword.Type (
|
||||
Keyword (..),
|
||||
|
||||
word,
|
||||
wordShow, unwordsSQL,
|
||||
|
||||
unsafeString, integer,
|
||||
|
||||
stringMap
|
||||
wordShow, unwordsSQL
|
||||
) where
|
||||
|
||||
import Data.Monoid (mconcat)
|
||||
@ -26,15 +22,3 @@ import Language.SQL.Keyword.Internal.Type (Keyword (..), word, wordShow)
|
||||
-- | Concatinate keywords into 'String' like unwords
|
||||
unwordsSQL :: [Keyword] -> String
|
||||
unwordsSQL = wordShow . mconcat
|
||||
|
||||
-- | Make SQL string expression. No escape logic, so this is unsafe function.
|
||||
unsafeString :: String -> Keyword
|
||||
unsafeString = word . ('\'' :) . (++ "'")
|
||||
|
||||
-- | Make SQL integer expression
|
||||
integer :: (Integral a, Show a) => a -> Keyword
|
||||
integer = word . show
|
||||
|
||||
-- | Map 'String' function into 'Keyword' function
|
||||
stringMap :: (String -> String) -> Keyword -> Keyword
|
||||
stringMap f = word . f . wordShow
|
||||
|
Loading…
Reference in New Issue
Block a user