Changelog for script-monad-0.0.3
Changelog for script-monad
0.0.3
This release has some significant changes to type names and signatures. The good news is that these changes make the code simpler and more modular. The bad news is that it now uses the QuantifiedConstraints extension, available only in GHC >=8.6.
- Added
liftScriptTTandliftHttpTT
- Changed
- Most functions now have additional
MonadandMonadTransconstraints. ScriptTis nowScriptTTand takes the effect monad as an explicit type parameter. Now acts like a monad transformer transformer.Scriptis nowScriptTand takes the effect monad as an explicit type parameter, reflecting its status as a monad transformerHttpTis nowHttpTTand takes the effect monad as an explicit type parameter. Now acts like a monad transformer transformer.Httpis nowHttpTand takes the effect monad as an explicit type parameter, reflecting its status as a monad transformerexecScriptTMis nowexecScriptTTand does not take an explicitliftparameter, using the genericMonadTransinstance instead.checkScriptTMis nowcheckScriptTTand does not take an explicitliftparameter, using the genericMonadTransinstance instead.execHttpTMis nowexecHttpTTand does not take an explicitliftparameter, using the genericMonadTransinstance instead.checkHttpTMis nowcheckHttpTTand does not take an explicitliftparameter, using the genericMonadTransinstance instead.
- Most functions now have additional
- Removed
Script.lift, in favor of a genericMonadTransinstanceliftHttpT, in favor of a genericMonadTransinstanceexecScriptT,execScript,checkScript, andcheckScript, which use a pure evaluator. These are subsumed byScriptTTwhere the base monad isIdentity.execScriptMandcheckScriptM, which are subsumed byScriptTTwith theIdentityTtransformer.execHttpMandcheckHttpM, which are subsumed byHttpTTwith theIdentityTtransformer.
0.0.2.1
- Added
- Semigroup instance for
W
- Semigroup instance for
0.0.2
- Added
- ScriptT:
draftfunction - HttpT:
catchAnyErrorfunction - HttpT:
logDebug,logInfo,logNotice,logWarning,logError,logCritical,logAlert,logEmergency, andsetLogSeverityfunctions - HttpT:
printHttpLogs - HttpT:
_logMinSeverityoption
- ScriptT:
- Changed
- HttpT: refactored logging to use syslog conventions
- Fixed
- ScriptT: Bug in implementation of
catchwas cutting off the logs
- ScriptT: Bug in implementation of
- Removed
- HttpT:
logEntryfunction; deprecated in favor of syslog-flavored logger functions
- HttpT:
0.0.1
- Added
- Script and ScriptT: Hand-rolled stack of error, reader, writer, state, and prompt
- Http and HttpT: Monad transformer for HTTP sessions with batteries included
- MockIO: Fake IO monad for testing