HaskellWiki

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

 

Not logged in
Log in | Help

Type synonym

Categories: Glossary

A type synonym is a new name for an existing type. Values of different synonyms of the same type are entirely compatible. In Haskell you can define a type synonym using type:

type MyChar = Char

In C you define a type synonym using typedef.

Retrieved from "http://www.haskell.org/haskellwiki/Type_synonym"

This page has been accessed 422 times. This page was last modified 07:41, 29 November 2007. Recent content is available under a simple permissive license.