Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GADTs: Difference between 'Algebraic' and 'Abstract'?

It seems the terms "Generalised Abstract Data Type" and "Generalised Algebraic Data Type" are used interchangeably, but I am sure that technically they are not the same thing.

Could someone explain the difference, perhaps using a simple example in the context of Haskell?

like image 919
Fezzo Avatar asked Jun 22 '14 04:06

Fezzo


1 Answers

There is no independent concept named generalized abstract data type. The phrase "generalized abstract data type" is sometimes incorrectly used for generalized algebraic data type. This mistake arises because both "algebraic data type" and "abstract data type" are abbreviated as "ADT".

like image 130
ThePiercingPrince Avatar answered Oct 06 '22 08:10

ThePiercingPrince