Linia kodu Haskella nie kompiluje: „Niedozwolony kontekst typu danych”

Nie jestem w stanie skompilować tej linii kodu w Haskell, ale działa ona na systemie mojego profesora. Używam ghci w wersji 7.6.2.

data Eq a => Shape a = Shape a

Dokładniej, to jest błąd, który otrzymuję

[1 of 1] Compiling Main             ( test.hs, interpreted )

test.hs:1:6:
Illegal datatype context (use -XDatatypeContexts): Eq a =>
Failed, modules loaded: none.

Jaki jest tutaj błąd?

Dzięki

questionAnswers(3)

yourAnswerToTheQuestion