Permalink
Browse files

Initial project setup

  • Loading branch information...
0 parents commit 245df4e48b8403124efd088ae23c949fd3e701bb @nurpax committed Aug 5, 2012
Showing with 126 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +16 −0 Database/SQLite/Simple.hs
  3. +62 −0 LICENSE
  4. +46 −0 sqlite-simple.cabal
@@ -0,0 +1,2 @@
+cabal-dev/
+dist/
@@ -0,0 +1,16 @@
+
+module Database.SQLite.Simple (
+ open
+ , close
+ ) where
+
+import Control.Applicative
+import qualified Database.SQLite3 as Base
+
+data Connection = Connection Base.Database
+
+open :: String -> IO Connection
+open fname = Connection <$> Base.open fname
+
+close :: Connection -> IO ()
+close (Connection c) = Base.close c
62 LICENSE
@@ -0,0 +1,62 @@
+Copyright (c) 2012, Janne Hellsten
+
+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 Leon P Smith 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.
+
+
+Copyright (c) 2011, MailRank, Inc.
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+2. 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.
+
+3. Neither the name of the author nor the names of his contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE 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 AUTHORS 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.
@@ -0,0 +1,46 @@
+Name: sqlite-simple
+Version: 0.1.0.0
+Synopsis: Mid-Level SQLite client library
+Description:
+ Mid-Level SQLite client library, based on postgresql-simple.
+License: BSD3
+License-file: LICENSE
+Author: Janne Hellsten <jjhellst@gamil.com>
+Maintainer: Janne Hellsten <jjhellst@gamil.com>
+Copyright: (c) 2011 MailRank, Inc.
+ (c) 2011-2012 Leon P Smith
+ (c) 2012 Janne Hellsten
+Category: Database
+Build-type: Simple
+
+Cabal-version: >= 1.9.2
+
+extra-source-files:
+ CONTRIBUTORS
+
+Library
+ Exposed-modules:
+ Database.SQLite.Simple
+
+ Build-depends:
+ attoparsec >= 0.8.5.3,
+ base < 5,
+ blaze-builder,
+ blaze-textual,
+ bytestring >= 0.9,
+ containers,
+ direct-sqlite >= 1.1,
+ template-haskell,
+ text >= 0.11.1,
+ time,
+ transformers,
+ vector
+
+ extensions: DoAndIfThenElse, OverloadedStrings, BangPatterns, ViewPatterns
+ TypeOperators
+
+ ghc-options: -Wall -fno-warn-name-shadowing
+
+source-repository head
+ type: git
+ location: http://github.com/nurpax/sqlite-simple

0 comments on commit 245df4e

Please sign in to comment.