diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2020-01-29 15:25:07 +0100 |
---|---|---|
committer | Andreas Klebinger <klebinger.andreas@gmx.at> | 2020-04-13 15:54:53 +0200 |
commit | ec44e160ec3a11d398e07e4c04844c56574ddf50 (patch) | |
tree | e911ae29e0c7bf77ad72a98581509f3e47232a8f /configure.ac | |
parent | e8029816fda7602a8163c4d2703ff02982a3e48c (diff) | |
download | haskell-ec44e160ec3a11d398e07e4c04844c56574ddf50.tar.gz |
Rework treatment of `elem`. Add UTF8 GHC.CString functions.
A fusion RULE for elem was broken preventing it from firing.
Fixing this allows a call to elem on a known list to be translated
into a series of equality checks, and eventually a simple case
expression.
This now also works for unboxed string literals via a builtin rule.
As a byproduct GHC.CString functionality is now available for Ascii
and UTF8 strings. The following missing UTF8 variants were
added: unpackAppendCStringUtf8#, unpackFoldrCStringUtf8#
They work just like their ascii counterparts. Which hopefully
makes proper UTF8 support easier for library authors and was
required to support this transformation for utf8 encoded
unboxed strings.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions