KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I was just doing some Haskell development and I recompiled some old code on a new version of GHC: The Glorious Glasgow Haskell Compilation System, version 7.2.1 And when I did I received the following error: Warning: -XDatatypeContexts is deprecated: It was widely considered a misfeature, and has been removed from the Haskell language. That appears when you have code in the following format: data Ord a => MyType a = ConstructorOne a | ConstructorTwo a a My question is: Why was this feature deprecated in the first place and what am I supposed to do instead to achieve the same or similar functionality?
Tags (comma-separated)
Save Edits
Cancel