Weird field name mangling.
22 Nov
2006
22 Nov
'06
4:58 p.m.
L.S., consider the following code:
module TestZ where
import Data.Generics
data TestZ = TestZ { testz :: Int } deriving (Show, Read, Eq, Typeable, Data)
main = print $ constrFields . toConstr $ TestZ { testz = 2 }
I would expect this to output ["testz"]. Instead it outputs ["testzz"], using GHCi 6.4.1. Why is that z doubled? Doei, Arthur. -- /\ / | arthurvl@cs.uu.nl | Work like you don't need the money /__\ / | A friend is someone with whom | Love like you have never been hurt / \/__ | you can dare to be yourself | Dance like there's nobody watching
7218
Age (days ago)
7218
Last active (days ago)
0 comments
1 participants
participants (1)
-
Arthur van Leeuwen