ghc-9 strictness annotations change?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ghc-9 strictness annotations change?

Johannes Waldmann-2
Dear Cafe,

did something change w.r.t. placement of the bang?

GHCi, version 9.0.0.20200925: https://www.haskell.org/ghc/  :? for help

Prelude> data T = T { foo :: ! Int }

<interactive>:1:21: error: Operator applied to too few arguments: !

Prelude> data T = T { foo :: !Int }
Prelude>

- J.W.
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: ghc-9 strictness annotations change?

Georgi Lyubenov
Hi!

I believe this is what you're looking for - https://github.com/ghc-proposals/ghc-proposals/pull/229
But I'm not sure if it was implemented in 9.0 or earlier.

======
Georgi

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.