-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | TH splices to augment log messages with file info -- -- TH splices to augment log messages with file info. @package logging-effect-extra-file @version 2.0.1 module Control.Monad.Log.Extra.File -- | Generates a function that logs an Emergency message with info -- from the source file. -- --
-- $(logEmergencyTH) "GAH! All systems are down!!!" --logEmergencyTH :: Q Exp -- | Generates a function that logs an Alert message with info from -- the source file. -- --
-- $(logAlertTH) "Red alert!" --logAlertTH :: Q Exp -- | Generates a function that logs a Critical message with info -- from the source file. -- --
-- $(logCriticalTH) "Critical hit!" --logCriticalTH :: Q Exp -- | Generates a function that logs an Error message with info from -- the source file. -- --
-- $(logErrorTH) "Errors abound!" --logErrorTH :: Q Exp -- | Generates a function that logs a Warning message with info from -- the source file. -- --
-- $(logWarningTH) "Cargo number 2331 has commandeered the vessel" --logWarningTH :: Q Exp -- | Generates a function that logs a Notice message with info from -- the source file. -- --
-- $(logNoticeTH) "Heads up, but it's no biggie." --logNoticeTH :: Q Exp -- | Generates a function that logs an Informational message with -- info from the source file. -- --
-- $(logInfoTH) "Does anyone read these?" --logInfoTH :: Q Exp -- | Generates a function that logs an Informational message with -- info from the source file. -- --
-- $(logInformationalTH) "Does anyone read these?" ---- | Deprecated: logInformationalTH is deprecated in favor of -- logInfoTH. logInformationalTH :: Q Exp -- | Generates a function that logs a Debug message with info from -- the source file. -- --
-- $(logDebugTH) "Sleuthing with log messages..." --logDebugTH :: Q Exp -- | Generates a function that logs a message with info from the source -- file. -- --
-- $(logMessageTH) "Burn after reading." --logMessageTH :: Q Exp -- | Add "File" information to a log message. data WithFile a WithFile :: Loc -> a -> WithFile a -- | Retrieve the file location info. [msgLoc] :: WithFile a -> Loc -- | View the underlying message. [discardFile] :: WithFile a -> a -- | Given a way to render the underlying message a, render a -- message with its file info. -- --
-- >>> :set -XOverloadedStrings -- -- >>> let loc = Loc "SomeFile.hs" "some-package" "SomeModule" (1, 1) (1, 1) -- -- >>> renderWithFile id (WithFile loc "Some message") -- [some-package:SomeModule SomeFile.hs:1:1] Some message --renderWithFile :: (a -> Doc ann) -> (WithFile a -> Doc ann) -- | Generates a function that logs a message with the given -- Severity and info from the source file. logSeverityMessageTH :: Severity -> Q Exp -- | Lift a location into an Exp. liftLoc :: Loc -> Q Exp data Loc Loc :: String -> String -> String -> CharPos -> CharPos -> Loc [loc_filename] :: Loc -> String [loc_package] :: Loc -> String [loc_module] :: Loc -> String [loc_start] :: Loc -> CharPos [loc_end] :: Loc -> CharPos instance Data.Foldable.Foldable Control.Monad.Log.Extra.File.WithFile instance Data.Traversable.Traversable Control.Monad.Log.Extra.File.WithFile instance GHC.Base.Functor Control.Monad.Log.Extra.File.WithFile instance GHC.Show.Show a => GHC.Show.Show (Control.Monad.Log.Extra.File.WithFile a) instance GHC.Classes.Ord a => GHC.Classes.Ord (Control.Monad.Log.Extra.File.WithFile a) instance GHC.Classes.Eq a => GHC.Classes.Eq (Control.Monad.Log.Extra.File.WithFile a) instance Language.Haskell.TH.Syntax.Lift Control.Monad.Log.Severity