terrahs-0.7: A library for GIS Programs in Haskell.ContentsIndex
TerraHS.Algebras.Base.Attribute
Contents
The Attribute type
The Attributes class
The Values class
Operations on Value
The Values class
The Value type
Description
Module for handling the Attributes
Synopsis
data Attribute = Attr Property
class Values v => Attributes a v | a -> v where
getName :: a -> String
getValue :: a -> v
class Values a where
toString :: a -> String
toString :: Values a => a -> String
class Values a where
toString :: a -> String
data Value
= StValue String
| DbValue Double
| InValue Int
| Undefined
type Property = (String, Value)
getValuebyName :: [Attribute] -> String -> Value
The Attribute type
data Attribute
Constructors
Attr Property
show/hide Instances
The Attributes class
class Values v => Attributes a v | a -> v where
Methods
getName :: a -> String
getValue :: a -> v
show/hide Instances
The Values class
class Values a where
Methods
toString :: a -> String
show/hide Instances
Operations on Value
toString :: Values a => a -> String
The Values class
class Values a where
Methods
toString :: a -> String
show/hide Instances
The Value type
data Value
Constructors
StValue String
DbValue Double
InValue Int
Undefined
show/hide Instances
type Property = (String, Value)
getValuebyName :: [Attribute] -> String -> Value
Produced by Haddock version 2.3.0