sqlc-hs-0.2.0.1: sqlc-hs.cabal
cabal-version: 3.4
name: sqlc-hs
version: 0.2.0.1
-- synopsis:
-- description:
license: Apache-2.0
license-file: LICENSE
author: Alex Hansen
maintainer: alex.biehl@gmail.com
homepage: https://github.com/alexbiehl/sqlc-hs
bug-reports: https://github.com/alexbiehl/sqlc-hs/issues
category: Development
synopsis:
Generate type-safe Haskell code from SQL via https://github.com/sqlc-dev/sqlc.
description:
A Haskell code generator plugin for sqlc, allowing you to generate idiomatic Haskell types and functions directly from your SQL queries.
It leverages postgresql-simple, mysql-simple, and sqlite-simple, generating a thin layer on top of these well-known libraries.
-- copyright:
build-type: Simple
extra-doc-files: CHANGELOG.md
extra-source-files:
README.md
templates/internal.mysql.hs.jinja
templates/internal.postgresql.hs.jinja
templates/internal.sqlite.hs.jinja
templates/types.hs.jinja
templates/package.cabal.jinja
templates/query.hs.jinja
templates/toplevel.hs.jinja
test/golden/**/*.cabal
test/golden/**/*.hs
test/golden/**/*.input
source-repository head
type: git
location: git@github.com:alexbiehl/sqlc-hs.git
common stuff
ghc-options: -Wall -Wno-name-shadowing
build-depends:
, base <5
, sqlc-hs:sqlc-hs-prelude
mixins:
base hiding (Prelude),
sqlc-hs:sqlc-hs-prelude (Sqlc.Hs.Prelude as Prelude)
default-extensions:
DerivingStrategies
DuplicateRecordFields
OverloadedLabels
OverloadedRecordDot
OverloadedStrings
library sqlc-hs-prelude
visibility: private
exposed-modules: Sqlc.Hs.Prelude
build-depends:
, base <5
, relude <1.3
hs-source-dirs: sqlc-hs-prelude
default-language: GHC2021
library sqlc-hs-protos
visibility: private
exposed-modules:
Proto.Protos.Codegen
Proto.Protos.Codegen_Fields
build-depends: proto-lens-runtime <0.8
hs-source-dirs: sqlc-hs-protos
default-language: GHC2021
library
import: stuff
exposed-modules:
Sqlc.Hs.Codegen
Sqlc.Hs.Config
Sqlc.Hs.Main
Sqlc.Hs.NameTemplate
Sqlc.Hs.Resolve
build-depends:
, aeson <2.3
, bytestring <0.13
, directory <1.4
, ede <0.4
, file-embed <0.1
, filepath <1.6
, mtl <2.4
, proto-lens <0.8
, proto-lens-runtime <0.8
, sqlc-hs:sqlc-hs-protos
, text <2.2
, vector <0.14
hs-source-dirs: src
default-language: GHC2021
executable sqlc-hs
import: stuff
main-is: Main.hs
-- other-modules:
-- other-extensions:
build-depends: sqlc-hs
hs-source-dirs: app
default-language: GHC2021
test-suite sqlc-hs-test
import: stuff
default-language: GHC2021
build-depends:
, bytestring
, directory
, filepath
, process
, process-extras
, proto-lens
, sqlc-hs:{sqlc-hs, sqlc-hs-protos}
, tasty
, tasty-golden
, temporary
build-tool-depends: tasty-discover:tasty-discover
build-tool-depends: sqlc-hs:sqlc-hs
other-modules: Test.Sqlc.Hs.Golden
-- other-extensions:
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Driver.hs
build-depends: sqlc-hs