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
liftScriptTT
andliftHttpTT
- Changed
- Most functions now have additional
Monad
andMonadTrans
constraints. ScriptT
is nowScriptTT
and takes the effect monad as an explicit type parameter. Now acts like a monad transformer transformer.Script
is nowScriptT
and takes the effect monad as an explicit type parameter, reflecting its status as a monad transformerHttpT
is nowHttpTT
and takes the effect monad as an explicit type parameter. Now acts like a monad transformer transformer.Http
is nowHttpT
and takes the effect monad as an explicit type parameter, reflecting its status as a monad transformerexecScriptTM
is nowexecScriptTT
and does not take an explicitlift
parameter, using the genericMonadTrans
instance instead.checkScriptTM
is nowcheckScriptTT
and does not take an explicitlift
parameter, using the genericMonadTrans
instance instead.execHttpTM
is nowexecHttpTT
and does not take an explicitlift
parameter, using the genericMonadTrans
instance instead.checkHttpTM
is nowcheckHttpTT
and does not take an explicitlift
parameter, using the genericMonadTrans
instance instead.
- Most functions now have additional
- Removed
Script.lift
, in favor of a genericMonadTrans
instanceliftHttpT
, in favor of a genericMonadTrans
instanceexecScriptT
,execScript
,checkScript
, andcheckScript
, which use a pure evaluator. These are subsumed byScriptTT
where the base monad isIdentity
.execScriptM
andcheckScriptM
, which are subsumed byScriptTT
with theIdentityT
transformer.execHttpM
andcheckHttpM
, which are subsumed byHttpTT
with theIdentityT
transformer.
0.0.2.1
- Added
- Semigroup instance for
W
- Semigroup instance for
0.0.2
- Added
- ScriptT:
draft
function - HttpT:
catchAnyError
function - HttpT:
logDebug
,logInfo
,logNotice
,logWarning
,logError
,logCritical
,logAlert
,logEmergency
, andsetLogSeverity
functions - HttpT:
printHttpLogs
- HttpT:
_logMinSeverity
option
- ScriptT:
- Changed
- HttpT: refactored logging to use syslog conventions
- Fixed
- ScriptT: Bug in implementation of
catch
was cutting off the logs
- ScriptT: Bug in implementation of
- Removed
- HttpT:
logEntry
function; 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