[GHC] #9636: Function with type error accepted

GHC ghc-devs at haskell.org
Sat Sep 27 10:24:54 UTC 2014


#9636: Function with type error accepted
-------------------------------------+-------------------------------------
              Reporter:  augustss    |            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:              |       Blocked By:
  None/Unknown                       |  Related Tickets:
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by augustss):

 To me it's clear that `T Bool` is not a type.  To me `T` is a type
 function which computes a type given a type.  But it's a partial function,
 so only some arguments make sense.  New types are created by `data` and
 `newtype`, not by `type` or `type family`.

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


More information about the ghc-tickets mailing list