[GHC] #13116: Allow Overloaded things in patterns
GHC
ghc-devs at haskell.org
Thu Jul 26 14:54:08 UTC 2018
#13116: Allow Overloaded things in patterns
-------------------------------------+-------------------------------------
Reporter: | Owner: (none)
facundo.dominguez |
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
| OverloadedLabels,
| OverloadedStrings, OverloadedLists
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #11671 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by nomeata):
Note that this already works for `OverloadedStrings`:
{{{
$ ghci
GHCi, version 8.0.2: http://www.haskell.org/ghc/ :? for help
Prelude> :set -XOverloadedStrings
Prelude> import Data.Text
Prelude Data.Text> let foo :: Text -> Text; foo "foo" = "bar"
Prelude Data.Text> foo "foo"
"bar"
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13116#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list