name:                motor-diagrams
version:             0.4.0
synopsis:
  Generate state diagrams from Motor FSM typeclasses
description:
  Generate state diagrams from Motor FSM typeclasses.
license:             MPL-2.0
license-file:        LICENSE
author:              Oskar Wickström
maintainer:          oskar.wickstrom@gmail.com
copyright:           Oskar Wickström
category:            Control
build-type:          Simple
extra-source-files:
  CHANGELOG.md
  README.md
cabal-version:       >=1.10

source-repository head
  type:     git
  location: https://github.com/owickstrom/motor

library
  exposed-modules:     Motor.FSM.Diagram
                       Motor.FSM.Diagram.TH
  -- other-modules:
  -- other-extensions:
  build-depends:       base >=4.9 && <5
                     , template-haskell >= 2.11.1.0
                     , text
                     , motor >= 0.4.0
                     , motor-reflection
  hs-source-dirs:      src
  default-language:    Haskell2010
  ghc-options:         -Wall
                       -fno-warn-unticked-promoted-constructors

test-suite spec
  type:              exitcode-stdio-1.0
  other-modules:     Motor.FSM.DiagramSpec
                     -- for example diagram to be generated:
                     GenerateDiagram
  hs-source-dirs:    test, diagrams
  main-is:           Spec.hs
  build-depends:     base
                   , text
                   , hspec
                   , hspec-discover
                   , motor
                   , motor-reflection
                   , motor-diagrams
  build-tools:       hspec-discover
  ghc-options:       -Wall
                     -fno-warn-orphans
                     -fno-warn-missing-signatures
                     -fno-warn-unticked-promoted-constructors
                     -fno-warn-name-shadowing
  default-language:  Haskell2010