[Haskell-cafe] [ANN] Accelerate v1.3

Emil Axelsson 78emil at gmail.com
Tue Sep 1 13:39:31 UTC 2020


Nice! How is that done?

/ Emil

Den 2020-09-01 kl. 13:50, skrev Trevor McDonell:
>
>
>       Embedded pattern matching
>
> This release also introduces support for /embedded pattern 
> matching/ via the new |match| operator, which allows us to reuse 
> Haskell's case syntax in embedded code:
>
> intersect  ::  Exp  Ray  ->  Exp  Object  ->  Exp  Bool
> intersect ray=  match\case
>    Sphere_  c r->  ...
>    Triangle_  a b c->  ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20200901/0e7a0dda/attachment.html>


More information about the Haskell-Cafe mailing list