#836: rebindable if-then-else syntax
----------------------------------+-----------------------------------------
Reporter: nibro | Owner: SamAnklesaria
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 igloo):
Replying to [comment:26 SamAnklesaria]:
> As there are many libraries that use `if` syntax where a polymorphic
function would not suffice, I've decided to make rebindable syntax only
accessible through a language extension flag (currently named
RebindableIfStatements).
I think it would be better to have a `RebindableSyntax` extension, and to
make the other rebindable syntaxes use it too, rather than
`NoImplicitPrelude`.
> While the function `ifThenElse` is a part of the Prelude regardless
It should probably be in `GHC.Exts` rather than `Prelude`, and might be
worth a library proposal to put it somewhere more public (Not sure where;
maybe `Data.Function`?).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/836#comment:27>
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