Use NewIntMap InvInt for crInv

This commit is contained in:
2025-08-25 10:21:59 +01:00
parent 25e64d5378
commit 3f6f1b4019
38 changed files with 437 additions and 406 deletions
+5 -2
View File
@@ -8,7 +8,7 @@
--{-# LANGUAGE StandaloneDeriving #-}
module NewInt where
--import qualified Data.IntSet as IS
import qualified Data.IntSet as IS
import qualified Data.IntMap.Strict as IM
import Control.Lens
import Data.Aeson
@@ -17,8 +17,11 @@ import Data.Aeson.TH
newtype NewInt a = NInt { _unNInt :: Int}
deriving newtype (Eq,Ord,Show,Num,Read,Integral,Real,Enum)
newtype NewIntSet a = NIntSet { _unNIntSet :: IS.IntSet}
deriving newtype (Eq,Ord,Show,Read)
newtype NewIntMap a b = NIntMap { _unNIntMap :: IM.IntMap b}
deriving newtype (Monoid,Semigroup)
deriving newtype (Foldable,Functor,Monoid,Semigroup)
deriving (Eq,Ord,Show,Read)
type instance Index (NewIntMap a b) = NewInt a