Move sample codes into another package.

--HG--
rename : schema-th/pgTest/PgTest.hs => relational-join-HDBC-pgTest/pgTest/PgTest.hs
rename : schema-th/pgTest/PgTestDataSource.hs => relational-join-HDBC-pgTest/pgTest/PgTestDataSource.hs
rename : schema-th/pgTest/runCreate.sh => relational-join-HDBC-pgTest/pgTest/runCreate.sh
rename : schema-th/pgTest/runDrop.sh => relational-join-HDBC-pgTest/pgTest/runDrop.sh
rename : schema-th/sample/1/Group.hs => relational-join-HDBC-pgTest/sample/1/Group.hs
rename : schema-th/sample/1/Membership.hs => relational-join-HDBC-pgTest/sample/1/Membership.hs
rename : schema-th/sample/1/README => relational-join-HDBC-pgTest/sample/1/README
rename : schema-th/sample/1/User.hs => relational-join-HDBC-pgTest/sample/1/User.hs
rename : schema-th/sample/1/create.sh => relational-join-HDBC-pgTest/sample/1/create.sh
rename : schema-th/sample/1/drop.sh => relational-join-HDBC-pgTest/sample/1/drop.sh
rename : schema-th/sample/1/querySample.hs => relational-join-HDBC-pgTest/sample/1/querySample.hs
This commit is contained in:
Kei Hibino 2013-05-13 19:24:31 +09:00
parent 78ce58e25b
commit 7e98380848
16 changed files with 35 additions and 31 deletions

View File

@ -5,9 +5,9 @@ all: clean
cabal haddock --hyperlink-source
wc:
find src -name '*.hs' | xargs wc
test ! -d src || find src -name '*.hs' | xargs wc
clean:
cabal clean
[ ! -d .dWork ] || rm -r .dWork
find src \( -name '*.o' -o -name '*.hi' \) -exec rm {} \;
test ! -d src || find src \( -name '*.o' -o -name '*.hi' \) -exec rm {} \;

View File

@ -0,0 +1 @@
../devel/GNUmakefile

View File

@ -0,0 +1,30 @@
Copyright (c) 2013, Kei Hibino
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Kei Hibino nor the names of other
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain

View File

@ -43,32 +43,3 @@ library
, HDBC >=2
, HDBC-session
hs-source-dirs: src
Executable sample1
default-language: Haskell2010
build-depends: base <5
, template-haskell
, names-th
, DB-record
, relational-join
, HDBC-session
, HDBC-postgresql
, HDBC-schema-th
other-modules:
User
Group
Membership
main-is: querySample.hs
hs-source-dirs: sample/1, pgTest
Test-suite postgreSQL
build-depends: HDBC-schema-th
, Cabal
, HDBC-postgresql
, bytestring
, text
other-modules: PgTestDataSource
Type: detailed-0.9
Test-module: PgTest
hs-source-dirs: pgTest