packages feed

serialport-0.6.0: serialport.cabal

Name:           serialport
Version:        0.6.0
Cabal-Version:  >= 1.10
Build-Type:     Simple
license:        BSD3
license-file:   LICENSE
copyright:      (c) 2009-2011 Joris Putcuyps,
                (c) 2020-2025 David Cox
author:         Joris Putcuyps, David Cox
maintainer:     David Cox <standard.semiconductor@gmail.com>
homepage:       https://github.com/standardsemiconductor/serialport
bug-reports:    https://github.com/standardsemiconductor/serialport/issues
synopsis:       Cross platform serial port library.
description:    Cross platform haskell library for using the serial port.
category:       Hardware
Extra-Source-Files: README.md
                    CHANGELOG.md
                    tests/haskell_serial_test/haskell_serial_test.ino

source-repository head
  type:     git
  location: https://github.com/standardsemiconductor/serialport

Library
  Exposed-Modules:    System.Hardware.Serialport
                      System.Hardware.Serialport.Cli
  Other-Modules:      System.Hardware.Serialport.Types
  Build-Depends:      base                 >= 4.12 && < 4.22,
                      bytestring           >= 0.11 && < 0.13,
                      optparse-applicative >= 0.18 && < 0.20
  ghc-options:        -Wall
  default-language: Haskell2010
    
  if !os(windows)
    Build-Depends:    unix >= 2.8 && < 2.9
    Other-Modules:    System.Hardware.Serialport.Posix
  else
    Build-Depends:    Win32 >= 2.11 && < 2.15
    Other-Modules:    System.Hardware.Serialport.Windows
                      System.Win32.Comm

executable serialport
  ghc-options:        -Wall -O2 -threaded
  main-is:            Main.hs
  hs-source-dirs:     exe
  default-language:   Haskell2010
  build-depends:      async >= 2.2 && < 2.3,
                      base,
                      optparse-applicative >= 0.18 && < 0.19,
                      serialport

Test-Suite Tests
  type:               exitcode-stdio-1.0
  main-is:            Tests.hs
  hs-source-dirs:     tests
  default-language:   Haskell2010
  build-depends:      base,
                      HUnit,
                      bytestring,
                      serialport