raven-haskell 0.1.2.0 → 0.1.2.1
raw patch · 3 files changed
+21/−3 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- System.Log.Raven.Interfaces: (.=:) :: (ToJSON v) => String -> v -> [(String, Value)]
+ System.Log.Raven.Interfaces: (.=:) :: ToJSON v => String -> v -> [(String, Value)]
- System.Log.Raven.Interfaces: fromMaybe :: (ToJSON v) => String -> Maybe v -> [(String, Value)]
+ System.Log.Raven.Interfaces: fromMaybe :: ToJSON v => String -> Maybe v -> [(String, Value)]
- System.Log.Raven.Interfaces: interface :: (ToJSON v) => String -> v -> SentryRecord -> SentryRecord
+ System.Log.Raven.Interfaces: interface :: ToJSON v => String -> v -> SentryRecord -> SentryRecord
- System.Log.Raven.Types: [serviceDefaults] :: SentryService -> (SentryRecord -> SentryRecord)
+ System.Log.Raven.Types: [serviceDefaults] :: SentryService -> SentryRecord -> SentryRecord
- System.Log.Raven.Types: [serviceFallback] :: SentryService -> (SentryRecord -> IO ())
+ System.Log.Raven.Types: [serviceFallback] :: SentryService -> SentryRecord -> IO ()
- System.Log.Raven.Types: [serviceTransport] :: SentryService -> (SentrySettings -> SentryRecord -> IO ())
+ System.Log.Raven.Types: [serviceTransport] :: SentryService -> SentrySettings -> SentryRecord -> IO ()
Files
- README.md +16/−0
- raven-haskell.cabal +5/−2
- src/System/Log/Raven/Types.hs +0/−1
+ README.md view
@@ -0,0 +1,16 @@+Raven is a client for Sentry event server (<https://www.getsentry.com/>).++Start by initializing the raven 'Service':++ http <- newManager tlsManagerSettings+ l <- initRaven+ "https://pub:priv@sentry.hostname.tld:8443/sentry/example_project"+ id+ (sendRecordWith http)+ stderrFallback++Send events using 'register' function:++ register l "my.logger.name" Debug "Hi there!" id++More documentation is in the `System.Log.Raven` package.
raven-haskell.cabal view
@@ -1,5 +1,5 @@ name: raven-haskell-version: 0.1.2.0+version: 0.1.2.1 synopsis: Haskell client for Sentry logging service. -- description: homepage: https://bitbucket.org/dpwiz/raven-haskell@@ -12,9 +12,12 @@ build-type: Simple cabal-version: >=1.8 +extra-source-files:+ README.md+ library hs-source-dirs: src- ghc-options: -O2 -Wall+ ghc-options: -Wall exposed-modules: System.Log.Raven System.Log.Raven.Interfaces
src/System/Log/Raven/Types.hs view
@@ -50,7 +50,6 @@ verify (sentryURI -> "") = error "Empty URI" verify (sentryPublicKey -> "") = error "Empty public key"- verify (sentryPrivateKey -> "") = error "Empty private key" verify (sentryProjectId -> "") = error "Empty project id" verify s = s