Skip to content

Commit

Permalink
0.9.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
echatav committed Sep 1, 2023
1 parent fa20d37 commit ae4a238
Show file tree
Hide file tree
Showing 35 changed files with 79 additions and 37 deletions.
2 changes: 1 addition & 1 deletion squeal-postgresql/squeal-postgresql.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.2
name: squeal-postgresql
version: 0.9.1.2
version: 0.9.1.3
synopsis: Squeal PostgreSQL Library
description: Squeal is a type-safe embedding of PostgreSQL in Haskell
homepage: https://github.com/morphismtech/squeal
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Definition.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ data definition language
, RankNTypes
, ScopedTypeVariables
, TypeApplications
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableSuperClasses
, UndecidableInstances
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ comments
, RankNTypes
, ScopedTypeVariables
, TypeApplications
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableSuperClasses
#-}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ constraint expressions
, RankNTypes
, ScopedTypeVariables
, TypeApplications
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableSuperClasses
#-}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ create and drop functions
, RankNTypes
, ScopedTypeVariables
, TypeApplications
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableSuperClasses
#-}
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Definition/Index.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ create and drop indexes
, RankNTypes
, ScopedTypeVariables
, TypeApplications
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableSuperClasses
#-}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ create and drop procedures
, RankNTypes
, ScopedTypeVariables
, TypeApplications
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableSuperClasses
#-}
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Definition/Schema.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ create and drop schemas
, RankNTypes
, ScopedTypeVariables
, TypeApplications
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableSuperClasses
#-}
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Definition/Table.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ create, drop and alter tables
, RankNTypes
, ScopedTypeVariables
, TypeApplications
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableSuperClasses
#-}
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Definition/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ create and drop types
, RankNTypes
, ScopedTypeVariables
, TypeApplications
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableSuperClasses
#-}
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Definition/View.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ create and drop views
, RankNTypes
, ScopedTypeVariables
, TypeApplications
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableSuperClasses
#-}
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Expression.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ Expressions are the atoms used to build statements.
, StandaloneDeriving
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableInstances
, RankNTypes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ comparison functions and operators
{-# LANGUAGE
OverloadedStrings
, RankNTypes
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
#-}

Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Manipulation.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ data manipulation language
, ScopedTypeVariables
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableInstances
#-}
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Manipulation/Call.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ call statements
, ScopedTypeVariables
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableInstances
#-}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ delete statements
, ScopedTypeVariables
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableInstances
#-}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ insert statements
, ScopedTypeVariables
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableInstances
#-}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ update statements
, ScopedTypeVariables
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableInstances
#-}
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ structured query language
, StandaloneDeriving
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, RankNTypes
, UndecidableInstances
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Query/From.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ from clauses
, StandaloneDeriving
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, RankNTypes
, UndecidableInstances
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Query/From/Join.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ Squeal joins
, StandaloneDeriving
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, RankNTypes
, UndecidableInstances
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Query/From/Set.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ set returning functions
, StandaloneDeriving
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, RankNTypes
, UndecidableInstances
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Query/Select.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ select statements
, StandaloneDeriving
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, RankNTypes
, UndecidableInstances
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Query/Table.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ intermediate table expressions
, StandaloneDeriving
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, RankNTypes
, UndecidableInstances
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Query/Values.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ values statements
, StandaloneDeriving
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, RankNTypes
, UndecidableInstances
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Query/With.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ with statements
, StandaloneDeriving
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, RankNTypes
, UndecidableInstances
Expand Down
9 changes: 6 additions & 3 deletions squeal-postgresql/src/Squeal/PostgreSQL/Session.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ application's monad transformer stack, giving it an instance of `MonadPQ` @DB@.
, ScopedTypeVariables
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableInstances
#-}
Expand All @@ -39,11 +40,13 @@ module Squeal.PostgreSQL.Session

import Control.Applicative
import Control.Category
import Control.Monad (MonadPlus(..))
import Control.Monad.Base (MonadBase(..))
import Control.Monad.Fix (MonadFix(..))
import Control.Monad.Catch
import Control.Monad.Except
import Control.Monad.IO.Class (MonadIO(..))
import Control.Monad.Morph
import Control.Monad.Reader
import Control.Monad.Reader (ReaderT(..))
import Control.Monad.Trans.Control (MonadBaseControl(..), MonadTransControl(..))
import UnliftIO (MonadUnliftIO(..))
import Data.ByteString (ByteString)
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Session/Pool.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ a
, RankNTypes
, ScopedTypeVariables
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, UndecidableInstances
#-}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ transaction control language permitting arbitrary `IO`
, FlexibleContexts
, LambdaCase
, OverloadedStrings
, TypeInType
, DataKinds
, PolyKinds
#-}

module Squeal.PostgreSQL.Session.Transaction.Unsafe
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ storage newtypes
, ScopedTypeVariables
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableInstances
, UndecidableSuperClasses
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Type/Alias.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ Squeal can reference aliases by prepending with a @#@.
, StandaloneDeriving
, TypeApplications
, TypeFamilyDependencies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableInstances
, UndecidableSuperClasses
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/src/Squeal/PostgreSQL/Type/PG.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ into corresponding Postgres types.
, ScopedTypeVariables
, TypeApplications
, TypeFamilies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableInstances
, UndecidableSuperClasses
Expand Down
5 changes: 3 additions & 2 deletions squeal-postgresql/src/Squeal/PostgreSQL/Type/Schema.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ It also defines useful type families to operate on these.
, StandaloneDeriving
, TypeApplications
, TypeFamilyDependencies
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableInstances
, UndecidableSuperClasses
Expand Down Expand Up @@ -206,7 +207,7 @@ data Optionality
-- | `ColumnType` encodes the allowance of @DEFAULT@ and @NULL@ and the
-- base `PGType` for a column.
--
-- >>> :set -XTypeFamilies -XTypeInType
-- >>> :set -XTypeFamilies -XDataKinds -XPolyKinds
-- >>> import GHC.TypeLits
-- >>> type family IdColumn :: ColumnType where IdColumn = 'Def :=> 'NotNull 'PGint4
-- >>> type family EmailColumn :: ColumnType where EmailColumn = 'NoDef :=> 'Null 'PGtext
Expand Down
3 changes: 2 additions & 1 deletion squeal-postgresql/test/Spec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
, TypeApplications
, TypeFamilies
, TypeSynonymInstances
, TypeInType
, DataKinds
, PolyKinds
, TypeOperators
, UndecidableInstances
#-}
Expand Down
7 changes: 7 additions & 0 deletions stack-ghc9_6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resolver: nightly-2023-08-29
packages:
- squeal-postgresql
- squeal-postgresql-ltree
- squeal-postgresql-uuid-ossp
extra-deps:
- records-sop-0.1.1.1

0 comments on commit ae4a238

Please sign in to comment.