Moved to Driver directory

This commit is contained in:
VyacheslavHashov 2017-01-28 00:50:38 +03:00
parent d12619c77a
commit 04058b4b99
7 changed files with 15 additions and 23 deletions

View File

@ -15,11 +15,11 @@ cabal-version: >=1.10
library library
hs-source-dirs: src hs-source-dirs: src
exposed-modules: Database.PostgreSQL.Protocol exposed-modules: Database.PostgreSQL.Driver
, Database.PostgreSQL.Connection , Database.PostgreSQL.Driver.Connection
, Database.PostgreSQL.Settings , Database.PostgreSQL.Driver.Settings
, Database.PostgreSQL.StatementStorage , Database.PostgreSQL.Driver.StatementStorage
, Database.PostgreSQL.Types , Database.PostgreSQL.Driver.Types
, Database.PostgreSQL.Protocol.Types , Database.PostgreSQL.Protocol.Types
, Database.PostgreSQL.Protocol.Encoders , Database.PostgreSQL.Protocol.Encoders
@ -42,6 +42,7 @@ library
default-language: Haskell2010 default-language: Haskell2010
default-extensions: default-extensions:
OverloadedStrings OverloadedStrings
OverloadedLists
GeneralizedNewtypeDeriving GeneralizedNewtypeDeriving
test-suite postgres-wire-test test-suite postgres-wire-test

View File

@ -0,0 +1,2 @@
module Database.PostgreSQL.Driver where

View File

@ -1,11 +1,4 @@
{-# language OverloadedLists #-} module Database.PostgreSQL.Driver.Connection where
{-# language OverloadedStrings #-}
{-# language GADTs #-}
{-# language ApplicativeDo #-}
{-# language ExistentialQuantification #-}
{-# language TypeSynonymInstances #-}
{-# language FlexibleInstances #-}
module Database.PostgreSQL.Connection where
import qualified Data.ByteString as B import qualified Data.ByteString as B
@ -34,13 +27,11 @@ import Crypto.Hash (hash, Digest, MD5)
import Database.PostgreSQL.Protocol.Encoders import Database.PostgreSQL.Protocol.Encoders
import Database.PostgreSQL.Protocol.Decoders import Database.PostgreSQL.Protocol.Decoders
import Database.PostgreSQL.Protocol.Types import Database.PostgreSQL.Protocol.Types
import Database.PostgreSQL.Settings import Database.PostgreSQL.Driver.Settings
import Database.PostgreSQL.StatementStorage import Database.PostgreSQL.Driver.StatementStorage
import Database.PostgreSQL.Types import Database.PostgreSQL.Driver.Types
type UnixSocket = Socket Unix Stream Unix
-- data Connection = Connection (Socket Inet6 Stream TCP)
data Connection = Connection data Connection = Connection
{ connRawConnection :: RawConnection { connRawConnection :: RawConnection
, connReceiverThread :: ThreadId , connReceiverThread :: ThreadId

View File

@ -1,6 +1,6 @@
{-# language OverloadedStrings #-} {-# language OverloadedStrings #-}
module Database.PostgreSQL.Settings where module Database.PostgreSQL.Driver.Settings where
import Data.Word (Word16) import Data.Word (Word16)
import Data.ByteString (ByteString) import Data.ByteString (ByteString)

View File

@ -1,4 +1,4 @@
module Database.PostgreSQL.StatementStorage where module Database.PostgreSQL.Driver.StatementStorage where
import qualified Data.HashTable.IO as H import qualified Data.HashTable.IO as H
import qualified Data.ByteString as B import qualified Data.ByteString as B

View File

@ -1,7 +1,7 @@
{- {-
* We dont store parameters of connection that may change after startup * We dont store parameters of connection that may change after startup
-} -}
module Database.PostgreSQL.Types where module Database.PostgreSQL.Driver.Types where
import Data.ByteString (ByteString) import Data.ByteString (ByteString)

View File

@ -1,2 +0,0 @@
module Database.PostgreSQL.Protocol where