packages feed

data-svd-0.1.2.0: data-svd.cabal

cabal-version:       2.2
name:                data-svd
version:             0.1.2.0
synopsis:            SVD (System view description) file handling
description:         Parse, print, diff SVD files
homepage:            https://github.com/DistRap/data-svd
license:             BSD-3-Clause
license-file:        LICENSE
author:              sorki
maintainer:          srk@48.io
copyright:           2023 sorki
category:            Embedded
build-type:          Simple

extra-source-files:
    LICENSE
    README.md
    .golden/stm32f405/golden
    .golden/stm32f405-isrs/golden
    .golden/stm32f405-memmap/golden
    test/samples/stm32f405.svd

extra-doc-files:
    CHANGELOG.md

library
  ghc-options:         -Wall
  hs-source-dirs:      src
  exposed-modules:     Data.Bits.Pretty
                       Data.SVD
                       Data.SVD.Diff
                       Data.SVD.Dim
                       Data.SVD.IO
                       Data.SVD.Lens
                       Data.SVD.Parse
                       Data.SVD.Pretty
                       Data.SVD.Pretty.Box
                       Data.SVD.Pretty.Explore
                       Data.SVD.Types
                       Data.SVD.Util
  build-depends:       base >= 4.7 && < 5
                     , boxes
                     , bytestring
                     , containers
                     , cereal
                     , data-default-class
                     , Diff
                     , directory
                     , hashable
                     , hxt
                     , hxt-xpath
                     , lens
                     , prettyprinter
                     , prettyprinter-ansi-terminal
                     , safe
                     , text
  default-language:    Haskell2010

executable pretty-svd
  hs-source-dirs:      app
  main-is:             Main.hs
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N
  build-depends:       base
                     , data-svd
  default-language:    Haskell2010

test-suite spec
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  other-modules:       DimSpec
                       PrettyBitsSpec
                       SamplesSpec
  build-tool-depends:
    hspec-discover:hspec-discover
  build-depends:       base >= 4.7 && < 5
                     , data-svd
                     , data-default-class
                     , hspec
                     , hspec-golden
                     , lens
                     , prettyprinter
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/DistRap/data-svd