[Haskell-cafe] What can be UNPACK'ed?
tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Sun Jul 30 20:32:29 UTC 2017
On Sun, Jul 30, 2017 at 04:29:19PM -0500, amindfv at gmail.com wrote:
> > Technically it could be possible to reserve enough space in Foo to
> > store either a  or a (:) Float [Float].
> What if it's an infinite list? Do you just want to unpack the first cons
> and not the whole list?
Yes indeed. That's what I meant by
store either a  or a (:) Float [Float]
(And I'm not saying I want to, just that it could be done.)
More information about the Haskell-Cafe