Yes, I agree. This will require sprinkling the codebase with EmptyCase due
to [1], but that's still a sight better than calling `panic`. After GHC
8.10 is released (and the minimum version of GHC that HEAD supports is
8.8), we can even remove these empty cases by making the empty data type
fields strict (see [2]).

Ryan S.
-----
[1] https://ghc.haskell.org/trac/ghc/ticket/15247#comment:4
[2] https://ghc.haskell.org/trac/ghc/ticket/15305
_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Reply via email to