hs-rs-notify 0.1.0.13 → 0.1.0.14
raw patch · 2 files changed
+30/−1 lines, 2 filesdep ~basenew-component:exe:notify
Dependency ranges changed: base
Files
- app/Main.hs +18/−0
- hs-rs-notify.cabal +12/−1
+ app/Main.hs view
@@ -0,0 +1,18 @@+import Notify+import Protolude+import System.IO (getChar)++main :: IO ()+main = do+ putText "Hello"+ _state <-+ watch+ Config+ {pathToWatch = "./", relevantExtensions = [".hs"], debounceInSecs = 0}+ callback+ putText+ _ <- getChar+ pure ()++callback :: IO ()+callback = putText "Callback"
hs-rs-notify.cabal view
@@ -1,5 +1,5 @@ name: hs-rs-notify-version: 0.1.0.13+version: 0.1.0.14 synopsis: Experimental! Wraps this awesome rust library so you can use it in haskell. https://docs.rs/crate/notify -- description: homepage: https://github.com/NoRedInk/hs-rs-notify#readme@@ -26,7 +26,18 @@ , process == 1.4.3.0 default-language: Haskell2010 default-extensions: OverloadedStrings, NoImplicitPrelude, NamedFieldPuns+ extra-libraries: notifier, pthread include-dirs: notifier/target/release++executable notify+ hs-source-dirs: app+ main-is: Main.hs+ ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N+ build-depends: base+ , hs-rs-notify+ , protolude >= 0.1.6 && < 0.2+ default-language: Haskell2010+ default-extensions: OverloadedStrings, NoImplicitPrelude test-suite hs-rs-notify-test type: exitcode-stdio-1.0