persistent-migration-0.1.0: Manual migrations for the persistent library

MaintainerBrandon Chinn <brandonchinn178@gmail.com>
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Database.Persist.Migration.Utils.Data

Description

Define functions useful for data constructors.

Synopsis

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.