HaskellWiki

Haskell | Wiki community | Recent changes
Random page | Special pages

 

Not logged in
Log in | Help

Concrete data type

Categories: Glossary

A concrete data type is an opposite of an Abstract data type. It is a specialized solution-oriented data type that represents a well-defined single solution domain concept. A concrete data type is rarely reusable beyond its original use, but can be embedded or composed with other data types to form larger data types.

For example, a data type representing "parse tree for Haskell" is likely to be a concrete data type, whereas a "tree" data type is a corresponding Abstract data type.

In Haskell, concrete data types can be introduced with the data construct (without parameters), or by specializing a Parametrized data type to a specific situation. For example, Maybe Integer, Bool, [(String,String)] and Tree String are concrete data types.

Also see concrete view.

Retrieved from "http://haskell.org/haskellwiki/Concrete_data_type"

This page has been accessed 1,875 times. This page was last modified 22:06, 20 December 2006. Recent content is available under a simple permissive license.