Skip to content

CSE not working for top-level literal strings

Consider

{-# LANGUAGE MagicHash #-}
module S( z ) where
import GHC.Exts

data T = MkT Addr#

x = MkT "foo"#
y = MkT "foo"#

z = (x,y)

You'd expect those literal strings to get CSE'd but currently they are not.

Edited by Ben Gamari
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information