[GHC] #5267: Arrow command combinators
GHC
cvs-ghc at haskell.org
Sat Nov 5 19:52:17 CET 2011
#5267: Arrow command combinators
----------------------------------------+-----------------------------------
Reporter: peteg | Owner: ross
Type: bug | Status: new
Priority: normal | Milestone: 7.4.1
Component: Compiler | Version: 7.0.3
Resolution: | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: GHC rejects valid program |
----------------------------------------+-----------------------------------
Changes (by ross):
* owner: => ross
Comment:
On second thoughts, I think 6.12 was right to reject
{{{
ite'' cA tA eA = proc x ->
do c <- cA -< x
(| ite_perm' (returnA -< c) |)
where ite_perm' i = ite i tA eA
}}}
because the banana brackets require {{{ite_perm' :: forall env. (env ~>
Bool) -> (env ~> r)}}}, but generalization of {{{env}}} should be blocked
because it occurs in the types of {{{tA}} and {{{eA}}}.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5267#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list