#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):
Well, it's true that there can be only one `cond` in scope, but it can
have an overloaded type. You suggested
{{{
cond :: IfThenElse a => Bool -> a -> a -> a
}}}
Very well, define your class etc in `MyCondModule` and import that
overloaded `cond`.
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/836#comment:10>
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