Is there any trick to get the compiler to not create the type class instance object if none of the instance methods are used? I'm using purescript-option to allow multiple different record types to be passed in, but in doing that it creates the type class instance object every time which is built recursively and is a lot of useless function calls.
Is there any trick to get the compiler to not create the type class instance object if none of the instance methods are used? I'm using
purescript-option
to allow multiple different record types to be passed in, but in doing that it creates the type class instance object every time which is built recursively and is a lot of useless function calls.okay well I can get around it by just removing the method from the class definition