Comments (6)
from hoopl.
If it's just a question of boilerplate newtype wrappers, I'd be inclined to copy the necessary ones into hoopl
, rather than take a dependency on another library. hoopl
probably only uses half a dozen such functions.
Let's see what the hoopl maintainers say.
As to performance, I think that only newtype wrappers are involved, so perf impact should be zero. But worth checking anyway.
from hoopl.
I added some missing functions in the past, but restricyKeys
requires connecting the IsSet
with the IsMap
somehow, and I have yet to figure out how to do it. I tried with fundeps, but I am not a type wizard by any means, so I am kind of stuck going in that direction.
from hoopl.
from hoopl.
I support reimplementing the newtype wrappers in hoopl.
So, how do you make it work?
src/Compiler/Hoopl/Label.hs:106:27: error:
• Couldn't match expected type ‘set’ with actual type ‘LabelSet’
‘set’ is a rigid type variable bound by
the type signature for:
mapRestrictKeys :: forall set a.
IsSet set =>
LabelMap a -> set -> LabelMap a
at src/Compiler/Hoopl/Label.hs:106:3-17
• In the pattern: LS s
In an equation for ‘mapRestrictKeys’:
mapRestrictKeys (LM m) (LS s) = LM (restrictKeys m s)
In the instance declaration for ‘IsMap LabelMap’
• Relevant bindings include
mapRestrictKeys :: LabelMap a -> set -> LabelMap a
(bound at src/Compiler/Hoopl/Label.hs:106:3)
from hoopl.
from hoopl.
Related Issues (19)
- Stateful transformation causes non-termination in Hoopl analysis.
- Please update cabal file on hackage to point to this issue tracker HOT 3
- Decide on coding style HOT 23
- Migrate tests from test-framework to tasty HOT 4
- Who are maintainers of Hoopl? HOT 13
- Update website in cabal file HOT 3
- Runtime error caused by fromJust in module Dataflow HOT 2
- Interleaving of multiple passes HOT 1
- Interleaving multiple transfer functions using the same type of fact? HOT 1
- More advanced lattices for more precise analysis HOT 1
- Passes using multiple types of facts (aka snooping) HOT 1
- Upload tag v3.10.2.2 to Hackage HOT 3
- Conditional jumps with fall-through not always ordered properly by postorder_dfs HOT 4
- Also revise test deps to allow base 4.11
- hoopl-3.10.2.2 test suite does not compile
- Hoopl not mentioned on "Library submission" page HOT 3
- test build failure HOT 2
- Clean up the repository HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hoopl.