Pattern synonyms for 7.8?

Dr. ERDI Gergo gergo at erdi.hu
Wed Jan 15 11:27:29 UTC 2014


On Thu, 9 Jan 2014, Austin Seipp wrote:

> 3) It seems GHCi does not support declaring pattern synonyms at the
> REPL. I'm not sure if it's intentional, but if it goes in like this,
> please be sure to document it in the release notes. We can file a
> ticket later for supporting pattern synonyms at the REPL.

In GHCi, it seems to fail in the parser. So I thought, well that makes 
sense, isn't the REPL in GHCi supposed to be something like the inside of 
a 'do' block? But I tried creating a datatype in GHCi and that worked.. so 
my point is, I am now aware that I am confused about GHCi's behaviour. 
Given the time constraints, for the initial release I unfortunately have 
to decide *not* to support the GHCi REPL. I'll put that in the docs when I 
write them.

-- 

   .--= ULLA! =-----------------.
    \     http://gergo.erdi.hu   \
     `---= gergo at erdi.hu =-------'
I had my car's alignment checked.  It's chaotic evil!


More information about the ghc-devs mailing list