| 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 | 
Test.StateMachine.Types.Generics
Description
Datatype-generic utilities.
- newtype Constructor = Constructor String
 - class Constructors act where
 
Documentation
class Constructors act where Source #
Extracting constructors from actions.
Minimal complete definition
Methods
constructor :: act v a -> Constructor Source #
Constructor of a given action.
nConstructors :: proxy act -> Int Source #
Total number of constructors in the action type.