Comments (4)
The reason will be that the Data
instances for Vector
don't expose access to the internal elements. Uniplate.Data
just uses the Data
instance, the same one the syb
package uses, so I assume that syb
won't work either. Solution can be to write a custom Uniplate instance for Vector
, or to wrap the Vector
in a newtype. Looking at the source, https://hackage.haskell.org/package/vector-0.12.0.2/docs/src/Data.Vector.html#line-252, it does indeed seem that Vector doesn't really implement most of the Data
methods.
from uniplate.
That makes sense. Thank you!
from uniplate.
I've just found out that this issue has been fixed in vector's master branch (PR) but not yet released.
I have verified this works:
λ> transformBi not (V.singleton False)
[True]
This issue can probably be closed!
from uniplate.
Thanks for tracking it down!
from uniplate.
Related Issues (20)
- Uniplate.Data loops on increasing data types
- Implement on top of new Generics method HOT 10
- Optimise the Direct method
- Criterion benchmarks
- Higher Kinded Uniplate HOT 1
- Related work HOT 2
- README: Missing example HOT 2
- Feature request: More transformations HOT 4
- Uniplate.Direct requires derive Data ?? HOT 2
- No instance Biplate [a] a? HOT 6
- Allow strict fields in the hit map
- Could not find module ‘Data.Generics.Uniplate.Data’
- Support hashable-1.3.0.0 HOT 1
- Broken link in readme HOT 1
- Is it possible to get the `universeBi` in breadth-first-order? HOT 2
- Uniplate with extensible functions HOT 2
- Broken link on hackage HOT 1
- Doesn't compile against ghc 901 HOT 5
- Build fails with older GHCs HOT 2
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 uniplate.