Maintainer | Brandon Chinn <brandonchinn178@gmail.com> |
---|---|
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Define functions useful for data constructors.
Synopsis
- showConstr :: Data a => a -> String
- isConstr :: Data a => String -> a -> Bool
- hasDuplicateConstrs :: Data a => [a] -> Bool
Documentation
showConstr :: Data a => a -> String Source #
Show the name of the constructor.
isConstr :: Data a => String -> a -> Bool Source #
Return True if the given constructor has the given name.
hasDuplicateConstrs :: Data a => [a] -> Bool Source #
Return True if the given list has duplicate constructors.