Underscore in binary literals

Takenobu Tani takenobu.hs at gmail.com
Tue Sep 26 12:40:03 UTC 2017


Dear devs,

GHC's BinaryLiterals extension is useful.
(For example, x = 0b110111000101)

Is it difficult to include underscore(_) in the format like Verilog-HDL[1] ?
(For example, x = 0b1101_1100_0101)

[1]:
https://inst.eecs.berkeley.edu/~cs150/fa06/Labs/verilog-ieee.pdf#page=20

Regards,
Takenobu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20170926/d0e0f3c5/attachment.html>


More information about the ghc-devs mailing list