Problem when mixing type classes and type families

前端 未结 3 605
梦毁少年i
梦毁少年i 2021-01-02 09:23

This code compiles fine:

{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies, FlexibleInstances,
  UndecidableInstances, FlexibleContexts, EmptyDataDe         


        
3条回答
  •  悲&欢浪女
    2021-01-02 09:52

    It means that you aren't allowed to use type synomym families when declaring type instances. See the section "Type families and instance declarations" of the GHC manual.

    The only way you can fix it is to refactor so as to not need it somehow.

提交回复
热议问题