packages feed

mellon-gpio 0.8.0.4 → 0.8.0.5

raw patch · 6 files changed

+36/−15 lines, 6 filesdep +protoludedep ~mellon-corePVP ok

version bump matches the API change (PVP)

Dependencies added: protolude

Dependency ranges changed: mellon-core

API changes (from Hackage documentation)

Files

LICENSE view
@@ -1,4 +1,4 @@-Copyright (c) 2017, Quixoftic, LLC+Copyright (c) 2018, Quixoftic, LLC  All rights reserved. 
changelog.md view
@@ -1,3 +1,15 @@+## 0.8.0.5 (2018-02-04)++Changes:++  - This package now uses Protolude.++  - Disable hlint tests by default.++  - Add a `stack-lts-9.yaml` file for LTS 9 Stack builds.++  - Pare down support to just GHC 8.0.2 and GHC 8.2.2.+ ## 0.8.0.4 (2018-01-26)  - Require hlint 2.0.x.
mellon-gpio.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 5d0131e44b39a6d83e0f72ecd4cdd7e84764a20bb89537904b1bd6b9ead0ede4+-- hash: 34cb673100a26e616e49cefa75525fb248fa592422e78a03ab2dd5bd9d4ee0a5  name:                   mellon-gpio-version:                0.8.0.4+version:                0.8.0.5 synopsis:               GPIO support for mellon description:            @mellon-gpio@ provides a GPIO-driven @mellon-core@ @Device@.                         Currently, it provides support for Linux @sysfs@-based GPIO.@@ -15,10 +15,10 @@ bug-reports:            https://github.com/quixoftic/mellon/issues author:                 Drew Hess <dhess-src@quixoftic.com> maintainer:             Drew Hess <dhess-src@quixoftic.com>-copyright:              Copyright (c) 2017, Quixoftic, LLC+copyright:              Copyright (c) 2018, Quixoftic, LLC license:                BSD3 license-file:           LICENSE-tested-with:            GHC==7.10.3 GHC==8.0.1 GHC==8.0.2 GHC==8.2.1 GHC==8.2.2+tested-with:            GHC==8.0.2 GHC==8.2.2 build-type:             Simple cabal-version:          >= 1.10 @@ -34,15 +34,17 @@ flag test-hlint   description: Build hlint test   manual: True-  default: True+  default: False  library   hs-source-dirs:       src+  default-extensions: NoImplicitPrelude   build-depends:       base >=4.8 && <5     , hpio >=0.8 && <1-    , mellon-core ==0.8.*+    , mellon-core+    , protolude ==0.2.*   if impl(ghc >= 8.0)     ghc-options: -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates   else@@ -64,6 +66,7 @@   main-is: hlint.hs   hs-source-dirs:       test+  default-extensions: NoImplicitPrelude   ghc-options: -w -threaded -rtsopts -with-rtsopts=-N   if impl(ghc >= 8.0)     ghc-options: -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates@@ -75,4 +78,5 @@     build-depends:         base       , hlint ==2.0.*+      , protolude   default-language: Haskell2010
package.yaml view
@@ -1,11 +1,11 @@ name:       mellon-gpio-version:    0.8.0.4+version:    0.8.0.5 synopsis:   GPIO support for mellon category:   System stability:  experimental author:     Drew Hess <dhess-src@quixoftic.com> maintainer: Drew Hess <dhess-src@quixoftic.com>-copyright:  Copyright (c) 2017, Quixoftic, LLC+copyright:  Copyright (c) 2018, Quixoftic, LLC license:    BSD3 github:     quixoftic/mellon @@ -13,13 +13,13 @@    Currently, it provides support for Linux @sysfs@-based GPIO.' -tested-with: GHC==7.10.3 GHC==8.0.1 GHC==8.0.2 GHC==8.2.1 GHC==8.2.2+tested-with: GHC==8.0.2 GHC==8.2.2  flags:   test-hlint:     description: Build hlint test     manual: true-    default: true+    default: false  when:   - condition: impl(ghc >= 8.0)@@ -34,6 +34,9 @@         - -fwarn-incomplete-uni-patterns         - -fwarn-incomplete-record-updates +default-extensions:+  - NoImplicitPrelude+ library:   when:     - condition: impl(ghc >= 8.0)@@ -51,7 +54,8 @@   dependencies:     - base        >=4.8 && <5     - hpio        >=0.8 && <1-    - mellon-core ==0.8.*+    - mellon-core+    - protolude   ==0.2.*  tests:   hlint:@@ -71,6 +75,7 @@           dependencies:             - base             - hlint ==2.0.*+            - protolude  extra-source-files: - changelog.md
src/Mellon/Device/GPIO.hs view
@@ -1,7 +1,7 @@ {-| Module      : Mellon.Device.GPIO Description : GPIO-driven @mellon-core@ devices-Copyright   : (c) 2017, Quixoftic, LLC+Copyright   : (c) 2018, Quixoftic, LLC License     : BSD3 Maintainer  : Drew Hess <dhess-src@quixoftic.com> Stability   : experimental@@ -14,6 +14,7 @@            sysfsGpioDevice          ) where +import Protolude import Mellon.Device (Device(..)) import System.GPIO.Monad (PinValue(..), OutputPin, writeOutputPin) import System.GPIO.Linux.Sysfs (PinDescriptor, runSysfsGpioIO)
test/hlint.hs view
@@ -1,9 +1,8 @@ module Main where +import Protolude import Control.Monad (unless) import Language.Haskell.HLint-import System.Environment-import System.Exit  main :: IO () main =