[vector] #54: Missing NFData instances for vector types
vector
vector at projects.haskell.org
Sun Jan 29 12:34:08 GMT 2012
#54: Missing NFData instances for vector types
------------------------+---------------------------------------------------
Reporter: hvr | Owner:
Type: enhancement | Status: reopened
Priority: blocker | Milestone: 0.10
Version: 0.7 | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment(by rl):
Ideally yes, but Haskell doesn't really support that. The closest is the
new GHC extension:
{{{
class Monad m => NFDataM m a where
mrnf :: a -> m ()
default mrnf :: NFData a => a -> m ()
mrnf x = rnf x `seq` return ()
}}}
But you'd still have to say
{{{
instance NFDataM m MyType
}}}
--
Ticket URL: <http://trac.haskell.org/vector/ticket/54#comment:18>
vector <http://trac.haskell.org/vector>
Package vector
More information about the vector
mailing list