HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Modulepostgresql-simple-0.7.0.1Haskell2010

Database.PostgreSQL.Simple.Range

Synopsis
datadata PGRange a

Generic range type

Constructors

Instances28Functor, Eq, Show, FromField, ToField, …
valuecontains :: Ord a => PGRange a -> a -> Bool

Does a range contain a given point? Note that in some cases, this may not correspond exactly with a server-side computation. Consider UTCTime for example, which has a resolution of a picosecond, whereas postgresql's timestamptz types have a resolution of a microsecond. Putting such Haskell values into the database will result in them being rounded, which can change the value of the containment predicate.