Copyright | (C) 2017 ATS Advanced Telematic Systems GmbH Li-yao Xia |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Li-yao Xia <lysxia@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe |
Language | Haskell2010 |
Datatype-generic utilities.
- newtype Constructor = Constructor String
- class Constructors act where
Documentation
newtype Constructor Source #
A constructor name is a string.
class Constructors act where Source #
Extracting constructors from actions.
constructor :: act v a -> Constructor Source #
Constructor of a given action.
nConstructors :: proxy act -> Int Source #
Total number of constructors in the action type.