Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions fixed-vector/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.1.1.0 [2026.02.28]
-------------
* Missing `Prod` and `Vector` instances are added for `ContVec`.


2.1.0.0 [2026.01.27]
-------------
* New API for working with vectors that are not parametric in element:
Expand Down
7 changes: 7 additions & 0 deletions fixed-vector/Data/Vector/Fixed/Mono.hs
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,13 @@ pattern V4 t x y z <- (convert -> (t,x,y,z)) where
-- Instances
----------------------------------------------------------------

instance (ArityPeano n) => Prod a (C.ContVec n a) where
inspect = C.inspect
construct = C.construct
{-# INLINE inspect #-}
{-# INLINE construct #-}
instance (ArityPeano n) => Vector a (C.ContVec n a) where

instance Prod a (Complex a) where
inspect (r :+ i) (C.Fun f) = f r i
construct = C.Fun (:+)
Expand Down
2 changes: 1 addition & 1 deletion fixed-vector/fixed-vector.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Cabal-Version: 3.0
Build-Type: Simple

Name: fixed-vector
Version: 2.1.0.0
Version: 2.1.1.0
Synopsis: Generic vectors with statically known size.
Description:
Generic library for vectors with statically known
Expand Down
Loading