move raven into graphql-engine repo

This commit is contained in:
Vamshi Surabhi
2018-06-27 18:41:32 +05:30
parent 24b656b282
commit 530027cf20
118 changed files with 18848 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
{-# LANGUAGE OverloadedStrings #-}
module Data.Text.Extended
( module DT
, squote
, dquote
, paren
, (<->)
) where
import Hasura.Prelude
import Data.Text as DT
squote :: DT.Text -> DT.Text
squote t = DT.singleton '\'' <> t <> DT.singleton '\''
{-# INLINE squote #-}
dquote :: DT.Text -> DT.Text
dquote t = DT.singleton '"' <> t <> DT.singleton '"'
{-# INLINE dquote #-}
paren :: DT.Text -> DT.Text
paren t = "(" <> t <> ")"
{-# INLINE paren #-}
infixr 6 <->
(<->) :: DT.Text -> DT.Text -> DT.Text
(<->) l r = l <> DT.singleton ' ' <> r
{-# INLINE (<->) #-}