@@ -66,7 +66,7 @@ callEndpoint staticRoutes =
6666 options :: [(ApiOffset, [[Var (Opaque (IORef Dynamic)) Symbolic]])]
6767 options =
6868 mapMaybe
69− ( \(offset, argreps, _retType, _dynCall) -> (offset,) <$> do
69+ ( \(offset, (argreps, _retType, _dynCall)) -> (offset,) <$> do
7070 mapM fillableWith argreps
7171 )
7272 staticRoutes
@@ -82,7 +82,7 @@ callEndpoint staticRoutes =
8282 execute (Op (ApiOffset offset) args) = do
8383 fmap Opaque . liftIO $ do
8484 realArgs <- mapM (readIORef . opaque) args
85− let (_offset, _staticArgs, _ret, endpoint) = staticRoutes !! offset
85+ let (_offset, (_staticArgs, _ret, endpoint)) = staticRoutes !! offset
8686 -- now, magic happens: we apply some dynamic arguments to a dynamic
8787 -- function and hopefully something useful pops out the end.
8888 func = foldr (\arg curr -> flip dynApply arg =<< curr) (Just endpoint) realArgs
@@ -110,7 +110,7 @@ callEndpoint staticRoutes =
110110 (Op (ApiOffset offset) _args) ->
111111 s
112112 { stateRefs =
113− let (_, _, tr, _) = staticRoutes !! offset
113+ let (_, (_, tr, _)) = staticRoutes !! offset
114114 in Map.insertWith
115115 (<>)
116116 tr