Skip to content

Commit

Permalink
updated docs and bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
zohl committed Feb 21, 2017
1 parent d01c743 commit e300f49
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Change Log

## [Unreleased]

## [0.4.0]
### Added
- Changelog.
- Explicit type casts options.
Expand Down Expand Up @@ -28,7 +30,8 @@
### Added
- Initial version of the package.

[Unreleased]: ../../compare/v0.3.0...HEAD
[Unreleased]: ../../compare/v0.4.0...HEAD
[0.4.0]: ../../compare/v0.3.0...v0.4.0
[0.3.0]: ../../compare/v0.2.1...v0.3.0
[0.2.1]: ../../compare/v0.2.0...v0.2.1
[0.2.0]: ../../compare/v0.1.0...v0.2.0
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,22 @@ There are no plans to introduce breaking changes into the current API.
easier to employ this mechanism rather than write a parser from
scratch.

### pboExplicitCasts
Some sql queries may fail due to ambiguous types. With this option
enabled every expression will be explicitly casted to function
argument types.

### pboOlderCallSyntax
Since version `9.5` PostgreSQL supports `=>` for named notations in
function calls. Older syntax `:=` is supported for backward
compatibility.

### pboDebugQueries
When enabled, every generated function will print to `stdout`
arguments passed to it. Note, this will fail (compile-time) for
types without `Show` instances.


## Automated generation
It can be tedious to manually maintain consistent function declarations
across the codebase. More convenient way is to automatically generate module
Expand Down
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}:
mkDerivation {
pname = "postgresql-simple-bind";
version = "0.3.0.0";
version = "0.4.0";
src = ./.;
libraryHaskellDepends = [
attoparsec base bytestring data-default exceptions heredoc
Expand Down
4 changes: 2 additions & 2 deletions postgresql-simple-bind.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: postgresql-simple-bind
version: 0.3.0.0
version: 0.4.0
synopsis: FFI-like bindings for PostgreSQL stored functions
description: For tutorial see here: https:\/\/github.com\/zohl\/postgresql-simple-bind\/blob\/master\/README.md
license: BSD3
Expand Down Expand Up @@ -88,7 +88,7 @@ test-suite examples
main-is: Main.hs
default-language: Haskell2010

ghc-options: -Wall -Wno-redundant-constraints -ddump-splices
ghc-options: -Wall -Wno-redundant-constraints

if flag(build-examples)
build-depends: base >= 4.7 && < 5.0
Expand Down

0 comments on commit e300f49

Please sign in to comment.