
4 Jun
2014
4 Jun
'14
1:33 a.m.
Alejandro Serrano Mena
writes: Dear Haskell-Café,As part of my Google Summer of Code, I need to get the list of data constructors of a certain data type on a specific scenario.
Hi Alejandro, have you considered Data/Typeable or Generics? I'm not quite sure what you're looking for, but see my (similar?) requests: http://www.haskell.org/pipermail/haskell-cafe/2013-October/111133.html http://www.haskell.org/pipermail/generics/2013-December/000549.html And the helpful replies. Beware re Nils' suggestion that I think TH has changed with GHC7.8 such that type inspection at compile time is not so easy. (Sorry to be vague, and others will no doubt correct me.) AntC