-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use 'inspection-testing' to guarantee that implementation for TMap
is as efficient as for TypeRepMap
#33
Comments
@qoelet Sure, go for it! But I would like you to add some documentation while you work on this. I never used |
I've been taking a look at this issue, read the blog post to find out more about the library. But I'm not grasping what Also been looking at the inspection-testing examples to try and find something that might fit the problem but with no luck. I also saw the use in stan but that didn't give me clues either 😄 |
Hi @Cmdv! TypeRepMap is parametrized by a polymorphic type variable, and TMap is special case of However, despite being a specialization of inspection-testing is a Haskell library for checking, wether two functions are compiled to the same code in the end. And we want to check this for similar functions of |
@chshersh ah cool, so do I'd want to check for example: Lines 95 to 96 in 22af858
typerep-map/src/Data/TypeRepMap/Internal.hs Lines 184 to 191 in 22af858
making sure they compile to the same code? |
@Cmdv Yes, you got the idea right 👍 Checking just functions without applying them to any arguments should be enough. |
Perfect I'll give it a go 😄 |
After spending best part of the day trying to use I've tried both with cabal and stack but can't seem to get around it. 😢 Will try pick it up if I can get things working 😄 |
No description provided.
The text was updated successfully, but these errors were encountered: