@@ -78,12 +78,12 @@ import Data.List.NonEmpty (NonEmpty (..))
7878import qualified Data.List.NonEmpty as NE
7979import Data.Map.Strict (Map )
8080import qualified Data.Map.Strict as Map
81- import Data.Maybe (catMaybes , fromMaybe , isJust )
81+ import Data.Maybe (catMaybes , fromMaybe )
8282import Data.Monoid (First (.. ))
8383import Data.Primitive.MutVar
8484import Data.Set (Set )
8585import qualified Data.Set as Set
86- import Data.Typeable (Proxy (.. ), Typeable , cast , eqT )
86+ import Data.Typeable (Proxy (.. ), Typeable , cast )
8787import qualified Data.Vector as V
8888import qualified Database.LSMTree as R
8989import Database.LSMTree.Class (LookupResult (.. ), QueryResult (.. ))
@@ -1983,30 +1983,18 @@ arbitraryActionWithVars _ label ctx (ModelState st _stats) =
19831983 -- Tables not derived from unions are covered in UnitTests.
19841984 | not (null unionDescendantTableVars)
19851985 , let genErrors = pure Nothing -- TODO: generate errors
1986- -- TODO: this is currently only enabled for the reference
1987- -- implementation. Enable this unconditionally once table union is
1988- -- implemented
1989- , isJust (eqT @ h @ ModelIO. Table )
19901986 ]
19911987 ++ [ (8 , fmap Some $ (Action <$> genErrors <*> ) $
19921988 SupplyUnionCredits <$> genUnionDescendantTableVar <*> genUnionCredits)
19931989 -- Tables not derived from unions are covered in UnitTests.
19941990 | not (null unionDescendantTableVars)
19951991 , let genErrors = pure Nothing -- TODO: generate errors
1996- -- TODO: this is currently only enabled for the reference
1997- -- implementation. Enable this unconditionally once table union is
1998- -- implemented
1999- , isJust (eqT @ h @ ModelIO. Table )
20001992 ]
20011993 ++ [ (2 , fmap Some $ (Action <$> genErrors <*> ) $
20021994 SupplyPortionOfDebt <$> genUnionDescendantTableVar <*> genPortion)
20031995 -- Tables not derived from unions are covered in UnitTests.
20041996 | not (null unionDescendantTableVars)
20051997 , let genErrors = pure Nothing -- TODO: generate errors
2006- -- TODO: this is currently only enabled for the reference
2007- -- implementation. Enable this unconditionally once table union is
2008- -- implemented
2009- , isJust (eqT @ h @ ModelIO. Table )
20101998 ]
20111999 where
20122000 -- The typical, interesting case is to supply a positive number of
0 commit comments