packages feed

sqlcli-0.2.2.0: sqlcli.cabal

name:                sqlcli
version:             0.2.2.0
synopsis:            Bindings for SQL/CLI (ODBC) C API.
description:         See [NEWS](https://hub.darcs.net/mihaigiurgeanu/sqlcli/browse/NEWS)
                     for the ChangeLog.

                     Provides bindings to all the SQL/CLI C API standard.
                     SQL/CLI C API is a subset of ODBC. You can use this package to
                     access databases through ODBC. It is tested on Windows, Linux
                     and Mac operating Systems whith Postgres, Oracle and SQLite.

                     This package also contains Haskell wrapers to the foreign C calls and
                     utilities to make using the SQL/CLI easier for the Haskell
                     programmer.

                     You can use this to acces any database through ODBC.

homepage:            http://hub.darcs.net/mihaigiurgeanu/sqlcli
license:             BSD3
license-file:        LICENSE
author:              Mihai Giurgeanu
maintainer:          mihai.giurgean@gmail.com
copyright:           2017 Mihai Giurgeanu
category:            Database
build-type:          Simple
extra-source-files:  README.md, ChangeLog, NEWS
cabal-version:       >=1.10

Flag ODBC
  Description:  Compile against ODBC library
  Default:      True
  Manual:       False

library
  hs-source-dirs:      src
  exposed-modules:     SQL.CLI,
                       SQL.CLI.Utils
  build-depends:       base >= 4.7 && < 5,
                       transformers >= 0.5 && < 0.6,
                       logging >= 3.0 && < 4,
                       text >= 0.11.3.1
  default-language:    Haskell2010
  other-extensions:    CPP, ForeignFunctionInterface

  if flag(odbc)
    if os(windows)
       extra-libraries: odbc32
       if arch(x86_64)
          cpp-options: -DODBC -D_WIN64
       else
          cpp-options: -DODBC -DWIN32
    else
       extra-libraries: odbc
       cpp-options: -DODBC


source-repository head
  type:     darcs
  location: http://hub.darcs.net/mihaigiurgeanu/sqlcli