#836: rebindable if-then-else syntax
----------------------------------+-----------------------------------------
Reporter: nibro | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: _|_
Component: Compiler (Parser) | Version: 6.13
Keywords: | Testcase: N/A
Blockedby: | Difficulty: Unknown
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
----------------------------------+-----------------------------------------
Comment(by simonpj):
But "the" `cond` that is in scope could be overloaded, if you made it so.
Just say
{{{
import MyCondModule( cond )
}}}
and if `MyCondModule.cond` has an overloaded type then that's what'll
happen. In short, your desire is just a special case of "use whatever
`cond` is in scope".
OK, I think I'm happy to implement this.
Hmm. Do we call it `cond` or `ifthenelse`?
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/836#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs