Let's say I'm creating a data type in haskell, and this data type accepts multiple constructors. Is there an easy way to determine later in my code which one it was created as?
EDIT:
Example, I'm using the dataType
data LogicValue = CloseAnd (Int, Int) (Int, Int)
| CloseXor (Int, Int) (Int, Int)
| FarAnd LogicValue LogicValue
| FarXor LogicValue LogicValue
Is there an easy way to determine if something is a CloseAnd for instance?