You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The signature passed to the created def function is resolved regardless whether checkTypes is true or not, meaning there is currently a potential, unnecessary performance drain from resolving those signatures which are then subsequently discarded immediately in production environments.
import$from'sanctuary-def';import{create}from'hm-def';constdef=create({checkTypes: false,env: $.env,typeClasses: [],});constfoo=def// This signature will be parsed and resolved to an `Array Type`, regardless of `checkTypes` above.('foo :: Boolean -> Boolean')(x=>!x);
The resolved signature is never used by sanctuary-def's def when checkTypes is false anyways.
The text was updated successfully, but these errors were encountered:
The signature passed to the created
def
function is resolved regardless whethercheckTypes
istrue
or not, meaning there is currently a potential, unnecessary performance drain from resolving those signatures which are then subsequently discarded immediately in production environments.The resolved signature is never used by
sanctuary-def
'sdef
whencheckTypes
isfalse
anyways.The text was updated successfully, but these errors were encountered: