Skip to content

Commit 0f92c18

Browse files
committed
QLS: ModelStateTypeParams
1 parent 37b10bb commit 0f92c18

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/Test/Database/LSMTree/StateMachine.hs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,11 +490,14 @@ instance R.ResolveValue Value where
490490
Model state
491491
-------------------------------------------------------------------------------}
492492

493-
type ModelState :: ((Type -> Type) -> Type -> Type -> Type -> Type) -> Type
494-
data ModelState h = ModelState Model.Model Stats
493+
type ModelStateTypeParams = TableKind
494+
type TableKind = (Type -> Type) -> Type -> Type -> Type -> Type
495+
496+
type ModelState :: ModelStateTypeParams -> Type
497+
data ModelState ps = ModelState Model.Model Stats
495498
deriving stock Show
496499

497-
initModelState :: ModelState h
500+
initModelState :: ModelState ps
498501
initModelState = ModelState Model.initModel initStats
499502

500503
{-------------------------------------------------------------------------------

0 commit comments

Comments
 (0)