[GHC] #9733: Strange errors when using type families as parameters

GHC ghc-devs at haskell.org
Tue Oct 28 03:18:20 UTC 2014


#9733: Strange errors when using type families as parameters
-------------------------------------+-------------------------------------
              Reporter:  crockeea    |            Owner:
                  Type:  bug         |           Status:  new
              Priority:  normal      |        Milestone:
             Component:  Compiler    |          Version:  7.8.3
            Resolution:              |         Keywords:
      Operating System:              |     Architecture:  Unknown/Multiple
  Unknown/Multiple                   |       Difficulty:  Unknown
       Type of failure:  GHC         |       Blocked By:
  rejects valid program              |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by rodlogic):

 Example 1 result:
 {{{
 [1 of 1] Compiling Foo              ( t1.hs, t1.o )

 t1.hs:14:10:
     Type family ‘PrevElt’ should have 2 arguments, but has been given 1
     In the type signature for ‘test2’:
       test2 :: FooTF (PrevElt TList) ((PrevElt TList rp) -> rp)
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9733#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list