[vector] #57: Problem when nesting unboxed vectors in user defined data structures with newtype
vector
vector at projects.haskell.org
Wed Jun 22 23:22:51 BST 2011
#57: Problem when nesting unboxed vectors in user defined data structures with
newtype
--------------------------------+-------------------------------------------
Reporter: kaffeepause73 | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Version: | Resolution:
Keywords: newtype negate show |
--------------------------------+-------------------------------------------
Comment(by rl):
Hmm, I'm not convinced this is a problem with vector. Rather, this looks
like the culprit to me:
{{{
smap f s1 fstr = Signal (n,t,v,u)
where
n = getName s1
t = getTime s1
vdata = getVect s1
u = getUnit s1
v = V.map f v -- when time data is same
}}}
The last line is the what leads to non-termination. Should it be `v =
V.map f vdata`? If not, what behaviour do you expect?
--
Ticket URL: <http://trac.haskell.org/vector/ticket/57#comment:1>
vector <http://trac.haskell.org/vector>
Package vector
More information about the vector
mailing list