are patterns synonyms definable in GHCI?

Edward Kmett ekmett at gmail.com
Thu Dec 18 11:14:01 UTC 2014


ghci also accepts a number of other things.

You can define data types, type synonyms, classes, instances, so pattern
synonyms would seem to fall into scope.

On Thu, Dec 18, 2014 at 5:51 AM, Dr. ERDI Gergo <gergo at erdi.hu> wrote:
>
> On Thu, 18 Dec 2014, Carter Schonwald wrote:
>
>  Hey all,I was trying to define some pattern synonyms in ghci recently,
>> and that doesnt
>> seem to work. Is that something slated to be fix in 7.10 or something?
>>
>
> I thought GHCi accepts things that would be valid in a 'do' section? So
> e.g.
>
> x = ()
>
> doesn't work in GHCi, but
>
> let x = ()
>
> does.
>
> Pattern synonyms don't work for the exact same reason: they are not valid
> inside a 'do' block.
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-devs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20141218/cf296428/attachment.html>


More information about the ghc-devs mailing list