-- it contains.
type instance V.Dim (Vn v) = V.Dim v
+instance (V.Vector v a) => V.Vector (Vn v) a where
+ -- | Fortunately, 'Fun' is an instance of 'Functor'. The
+ -- 'V.construct' defined on our contained type will return a
+ -- 'Fun', and we simply slap our constructor on top with fmap.
+ construct = fmap Vn V.construct
+
+ -- | Defer to the V.inspect defined on the contained type.
+ inspect (Vn v1) = V.inspect v1
+
instance (Show a, V.Vector v a) => Show (Vn v a) where
-- | Display vectors as ordinary tuples. This is poor practice, but
-- these results are primarily displayed interactively and