rasa-ext-logger 0.1.0.0 → 0.1.1
raw patch · 2 files changed
+31/−33 lines, 2 filesdep ~basedep ~lensdep ~mtlPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, lens, mtl, rasa
API changes (from Hackage documentation)
Files
- rasa-ext-logger.cabal +29/−31
- src/Rasa/Ext/Logger.hs +2/−2
rasa-ext-logger.cabal view
@@ -1,34 +1,32 @@-name: rasa-ext-logger-version: 0.1.0.0-synopsis: Rasa Ext for logging state/actions-description: Rasa Ext for logging state/actions-homepage: https://github.com/ChrisPenner/rasa/-license: MIT-license-file: LICENSE-author: Chris Penner-maintainer: christopher.penner@gmail.com-copyright: 2016 Chris Penner-category: Extension-build-type: Simple--- extra-source-files:-cabal-version: >=1.10--library- hs-source-dirs: src- exposed-modules:- Rasa.Ext.Logger-- build-depends: base >= 4.7 && < 5- , rasa- , lens- , mtl- , lens- default-language: Haskell2010+name: rasa-ext-logger+version: 0.1.1+cabal-version: >=1.10+build-type: Simple+license: MIT+license-file: LICENSE+copyright: 2016 Chris Penner+maintainer: christopher.penner@gmail.com+homepage: https://github.com/ChrisPenner/rasa/+synopsis: Rasa Ext for logging state/actions+description:+ Rasa Ext for logging state/actions+category: Extension+author: Chris Penner - default-extensions:+source-repository head+ type: git+ location: https://github.com/ChrisPenner/rasa - ghc-options: -Wall+library+ exposed-modules:+ Rasa.Ext.Logger+ build-depends:+ base >=4.8 && <5,+ rasa >=0.1.4 && <0.2,+ lens ==4.14.*,+ mtl >=2.2.1 && <2.3,+ lens ==4.14.*+ default-language: Haskell2010+ hs-source-dirs: src+ ghc-options: -Wall -source-repository head- type: git- location: https://github.com/ChrisPenner/rasa
src/Rasa/Ext/Logger.hs view
@@ -12,8 +12,8 @@ logger = do onInit $ liftIO $ writeFile "logs.log" "Event Log\n" afterRender $ do- editor <- get- liftIO $ appendFile "logs.log" (show editor)+ ed <- get+ liftIO $ appendFile "logs.log" (show ed) logInfo :: String -> Action () logInfo msg = liftIO $ appendFile "info.log" ("INFO: " ++ msg ++ "\n")