[GHC] #13451: Bind implicit parameter in patterns

GHC ghc-devs at haskell.org
Sun Mar 19 11:23:11 UTC 2017


#13451: Bind implicit parameter in patterns
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:  (none)
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
                                     |  ImplicitParams
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Iceland_jack):

 Also applies here maybe,

 {{{#!hs
 greet :: (?name :: String) => String
 greet = "hi " ++ ?name

 -- t1QY.hs:12:4-8: error: Parse error in pattern: ?name
 -- Compilation failed.
 a :: String
 a = greet where
   (?name, False) = ("Iceland_jack", True)
 }}}

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


More information about the ghc-tickets mailing list