[GHC] #8574: Failure to require FlexibleContexts

#8574: Failure to require FlexibleContexts --------------------------+------------------------------------------------ Reporter: | Owner: Feuerbach | Status: new Type: bug | Milestone: Priority: normal | Version: 7.6.3 Component: | Operating System: Unknown/Multiple Compiler (Parser) | Type of failure: GHC accepts invalid program Keywords: | Test Case: Architecture: | Blocking: Unknown/Multiple | Difficulty: | Unknown | Blocked By: | Related Tickets: | --------------------------+------------------------------------------------ GHC accepts the following code without any extensions: {{{ f :: Ord (i Int) => i Int -> i Int f = undefined }}} It ought to require FlexibleContexts. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8574 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8574: Failure to require FlexibleContexts ------------------------------------------------+-------------------------- Reporter: Feuerbach | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (Parser) | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC accepts invalid program | Unknown/Multiple Test Case: | Difficulty: Blocking: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Comment (by monoidal): It seems this is valid Haskell 98: http://www.haskell.org/onlinereport/decls.html, section 4.1.3, the class is allowed to take `(tyvar atype1 ... atypen)` as an argument, and `atype` includes `Int`. But the [http://www.haskell.org/ghc/docs/7.6.3/html/users_guide/other- type-extensions.html documentation], section 7.8.2 claims Haskell 98 requires `(class (type-variable type-variable ...))` form. So I think this documentation should be changed to `(class (type-variable type type ...))`. Do you agree? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8574#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8574: Failure to require FlexibleContexts ------------------------------------------------+-------------------------- Reporter: Feuerbach | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler (Parser) | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC accepts invalid program | Unknown/Multiple Test Case: | Difficulty: Blocking: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Comment (by Feuerbach): Ah, you're absolutely right. I should've read the report first! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8574#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8574: Failure to require FlexibleContexts
------------------------------------------------+--------------------------
Reporter: Feuerbach | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (Parser) | Version: 7.6.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC accepts invalid program | Unknown/Multiple
Test Case: | Difficulty:
Blocking: | Unknown
| Blocked By:
| Related Tickets:
------------------------------------------------+--------------------------
Comment (by Krzysztof Gogolewski

#8574: Failure to require FlexibleContexts ------------------------------------------------+-------------------------- Reporter: Feuerbach | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler (Parser) | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC accepts invalid program | Unknown/Multiple Test Case: | Difficulty: Blocking: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Changes (by monoidal): * status: new => closed * resolution: => fixed Comment: Documentation fixed. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8574#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC