Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are Haskell FlexibleInstances a stable extension to the language?

Tags:

haskell

ghc

What is the problem with FlexibleInstances in Haskell? Why are they not included in Haskell 2010? Were implementations of FlexibleInstances simply not stable enough for inclusion into a standard or are deeper concerns connected to FlexibleInstances? Is it safe to use them? Will they likely be included in Haskell Prime?

like image 885
scravy Avatar asked Dec 03 '11 11:12

scravy


1 Answers

Is it safe to use them?

Yes. FlexibleInstances will not create an ambiguous or overlapping situation when GHC needs to resolve type classes. Note that the potential for overlap of the instances is possible and not an error, but any actual confusing usage during type checking will be an error.

Will they likely be included in Haskell Prime?

I have no idea, I am not part of Haskell Prime. There is a mailing list, archived at gmane. The ticket tracking this is number 32.

like image 145
Chris Kuklewicz Avatar answered Nov 11 '22 14:11

Chris Kuklewicz