Are Haskell FlexibleInstances a stable extension to the language?

前端 未结 1 2103
天命终不由人
天命终不由人 2020-12-18 18:07

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 incl

相关标签:
1条回答
  • 2020-12-18 18:40

    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.

    0 讨论(0)
提交回复
热议问题