Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Database.Postgis.Trivial.Types
Synopsis
- type SRID = Maybe Int
- class Typeable a => PointND a where
- type Putter a = a -> Put
- type Getter h = ReaderT h Get
- newtype Geo g = Geo g
- class Typeable a => Geometry a where
- putGeometry :: Putter a
- getGeometry :: Get a
- newtype GeometryError = GeometryError {
- geoMessage :: String
Documentation
class Typeable a => PointND a where Source #
Inner point type class
Methods
dimProps :: (Bool, Bool) Source #
components :: a -> (Double, Double, Maybe Double, Maybe Double) Source #
fromComponents :: (Double, Double, Maybe Double, Maybe Double) -> a Source #
Wrapper for geomety types (prevents collisions with default instances)
Constructors
Geo g |
class Typeable a => Geometry a where Source #
Type class which defines geometry to/from binary form convertions
Instances
newtype GeometryError Source #
Exception for operations with geometries
Constructors
GeometryError | |
Fields
|
Instances
Exception GeometryError Source # | |
Defined in Database.Postgis.Trivial.Types Methods toException :: GeometryError -> SomeException # fromException :: SomeException -> Maybe GeometryError # displayException :: GeometryError -> String # | |
Show GeometryError Source # | |
Defined in Database.Postgis.Trivial.Types Methods showsPrec :: Int -> GeometryError -> ShowS # show :: GeometryError -> String # showList :: [GeometryError] -> ShowS # | |
Eq GeometryError Source # | |
Defined in Database.Postgis.Trivial.Types Methods (==) :: GeometryError -> GeometryError -> Bool # (/=) :: GeometryError -> GeometryError -> Bool # |