HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

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.