Closed etorreborre closed 3 years ago
@etorreborre I've implemented it, so can you please check if it works correctly in #11?
Hi @waddlaw sorry for being so slow to respond, I just didn't see your message and moved on :-(.
I just tried the plugin again and it is indeed working with where
clauses, thanks! On the other hand I am getting many redundant constraints warnings even for simple functions like:
• Redundant constraints: (HasCallStack, HasCallStack)
• In the type signature for:
contractConfig :: (HasCallStack, HasCallStack, HasCallStack) =>
ContractConfig
|
225 | contractConfig :: ContractConfig
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Do you have any idea why those constraints would be duplicated?
In our code base we have many components defined like this:
Since the plugin only adds
HasCallStack
constraints to top level functions we don't get a stacktrace forfunction1
andfunction2
. How hard would it be add?