Hi,On 1 December 2011 22:38, Philippe Sismondi <psismondi@arqux.com> wrote:Is it possible to discover the data constructor used to make a value without doing pattern matching?Yes, it is.constrName :: Data a => a -> StringconstrName = show . toConstr
(You can derive Data for your data type using the language extension DeriveDataTypeable)Hope this helps,
Ozgur