packages feed

keera-hails-reactive-fs 0.0.3.3 → 0.0.3.4

raw patch · 2 files changed

+6/−5 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

keera-hails-reactive-fs.cabal view
@@ -7,7 +7,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented.-Version:             0.0.3.3+Version:             0.0.3.4  -- A short (one-line) description of the package. Synopsis:            Haskell on Rails - Files as Reactive Values
src/Hails/FS.hs view
@@ -12,9 +12,10 @@ import System.Directory import System.FSNotify --- A file as a passive reactive value. Passive values are those--- that never notify of changes to them. They are useful as--- sources of information controlled by other RVs (buttons, etc.)+-- | A file as a passive reactive value.+--+-- Passive values are those that never notify of changes to them. They are+-- useful as sources of information controlled by other RVs (buttons, etc.) pasiveFileReactive :: FilePath -> ReactiveFieldReadWrite IO String pasiveFileReactive fp = ReactiveFieldReadWrite setter getter notifier  where getter     = readFile  (encodeString fp)@@ -23,7 +24,7 @@  -- | A file as a reactive value. The file must exist at the time -- the call is evaluated.---+ -- TODO: Make it ok for the file not to exist. -- TODO: Capture and ignore exceptions in readFile and writeFile. fileReactive :: FilePath -> IO (ReactiveFieldReadWrite IO String)